// Lean compiler output
// Module: Lake.DSL.Targets
// Imports: public import Lake.DSL.Syntax public import Lake.Config.TargetConfig public import Lake.Config.FacetConfig public import Lake.Build.Job.Register public import Lake.Build.Infos import Lake.DSL.DeclUtil
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__21;
lean_object* l_ReaderT_instFunctorOfMonad___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__4;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand__1___boxed(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__13;
lean_object* l_Lake_ensureJob___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lake_InputDirConfig_instConfigInfo;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__11;
LEAN_EXPORT lean_object* l_Lean_mkIdentFromRef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__8___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___lam__0___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__5;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand__1___closed__1;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__1;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__17;
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
LEAN_EXPORT lean_object* l_Lake_DSL_mkExternLibDecl___lam__0(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand__1___closed__1;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__18;
extern lean_object* l_Lake_LeanLibConfig_instConfigInfo;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__0;
LEAN_EXPORT lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__2;
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__40;
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_TSyntax_getId(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__30;
extern lean_object* l_Lake_InputFile_keyword;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__68;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1___closed__2;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__58;
lean_object* l_Lean_Elab_Command_instMonadCommandElabM___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__33;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__10;
lean_object* l_Lean_Environment_header(lean_object*);
LEAN_EXPORT lean_object* l_Lake_DSL_mkLibraryFacetDecl___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_getHeadInfo(lean_object*);
lean_object* l_Lean_indentD(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__42;
static lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__8;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand__1___closed__1;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__17;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___lam__0(lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__37;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___lam__0___closed__0;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__7;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__1;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__25;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__6;
LEAN_EXPORT lean_object* l_Lake_DSL_mkExternLibDecl___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lake_BuildInfo_key(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__4;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__14;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__66;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__15;
lean_object* lean_array_push(lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__9;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__2;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__2;
extern lean_object* l_Lake_LeanLib_keyword;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__19;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__0;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__26;
extern lean_object* l_Lake_LeanExeConfig_instConfigInfo;
lean_object* l_Lean_KVMap_find(lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__7;
LEAN_EXPORT lean_object* l_Lake_DSL_mkTargetDecl___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl__1___boxed(lean_object*);
lean_object* l_Lean_Syntax_getArgs(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__3;
static lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__1;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__0___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_replaceRef(lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__17;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__13;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__3;
LEAN_EXPORT lean_object* l_Lake_DSL_mkPackageFacetDecl___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__24;
extern lean_object* l_Lake_Package_keyword;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__38;
LEAN_EXPORT lean_object* l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___redArg(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__7;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__40;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__17;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__4;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__5;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___boxed(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__1;
LEAN_EXPORT lean_object* l_Lake_DSL_mkModuleFacetDecl___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*, uint8_t);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__4;
LEAN_EXPORT lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__6;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__52;
extern lean_object* l_Lake_instTypeNameInputFileDecl_unsafe__1;
static lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__10;
lean_object* l_Lean_Syntax_node5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__14;
lean_object* l_Lean_stringToMessageData(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__19;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand__1___boxed(lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__12;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1___closed__0;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__3;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__18;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__7;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__0;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__4;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__5;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__1;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__11;
lean_object* l_Array_mkArray0(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__6;
lean_object* l_ReaderT_instMonad___redArg(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl__1___closed__0;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__29;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__20;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__4;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__63;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__32;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__5;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__15;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__19;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__0;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__36;
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__1;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand__1___closed__0;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__49;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__12;
lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__0;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__20;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__42;
extern lean_object* l_Lake_InputFileConfig_instConfigInfo;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__19;
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__5;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__10;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Array_mkArray1___redArg(lean_object*);
static lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__3;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__6;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__0;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__44;
LEAN_EXPORT lean_object* l_Lean_Option_get___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__1___boxed(lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__7;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__5;
extern lean_object* l_Lean_Elab_Command_instInhabitedScope_default;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__0(lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_Elab_Command_instMonadEnvCommandElabM;
static lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__15;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__62;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__8;
LEAN_EXPORT lean_object* l_Lake_DSL_mkConfigDecl___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__16;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__29;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__24;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__38;
lean_object* lean_st_ref_take(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__2;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__14;
extern lean_object* l_Lean_Elab_Command_commandElabAttribute;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__1;
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__6;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__23;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___lam__0(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__31;
LEAN_EXPORT lean_object* l_Lean_mkIdentFromRef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__8(lean_object*, uint8_t, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__5;
lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__30;
lean_object* l_ReaderT_instApplicativeOfMonad___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_MessageData_ofSyntax(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__19;
lean_object* l_instMonadEST(lean_object*, lean_object*);
lean_object* l_Array_empty(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__50;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__8;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__2;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__3;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__20;
static lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__0;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__25;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__5;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__8;
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__39;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__33;
lean_object* l_Lean_Syntax_TSepArray_getElems___redArg(lean_object*);
lean_object* l_Lean_MessageData_ofFormat(lean_object*);
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__2;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__9;
lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__41;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__22;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__13;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__51;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1();
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__31;
static lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__13;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__18;
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*);
lean_object* lean_st_ref_get(lean_object*);
lean_object* l_Lean_getMainModule___redArg(lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__7;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__8;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_getOptional_x3f(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__4;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__13;
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand__1___closed__1;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__43;
lean_object* l_Lean_Name_num___override(lean_object*, lean_object*);
lean_object* l_Lean_Syntax_node3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_DSL_mkPackageFacetDecl___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_append(lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__7;
lean_object* l_Lake_BuildKey_toSimpleString(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__3;
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__1;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__2;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__15;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__12;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__2;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__48;
lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand__1();
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__14;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__8;
LEAN_EXPORT lean_object* l_Lake_DSL_mkModuleFacetDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__9;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__34;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__61;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__0;
LEAN_EXPORT lean_object* l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__2(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__2;
lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__8;
lean_object* l_Lean_extractMacroScopes(lean_object*);
LEAN_EXPORT lean_object* l_Lean_mkIdentFromRef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__8___redArg(lean_object*, uint8_t, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__13;
lean_object* l_Lean_Name_str___override(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl__1();
extern lean_object* l_Lean_Elab_macroAttribute;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1();
extern lean_object* l_Lean_Elab_pp_macroStack;
LEAN_EXPORT lean_object* l_Lean_mkIdentFromRef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__1___closed__1;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl__1___closed__0;
lean_object* l_Lean_mkOptionalNode(lean_object*);
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55;
lean_object* l_Lake_Job_renew___redArg(lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl(lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*);
lean_object* l_Lean_Elab_Command_elabCommand___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand__1___closed__0;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__27;
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg(lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__57;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__34;
LEAN_EXPORT lean_object* l_Lake_DSL_mkTargetDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__14;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__3;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__11;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__2;
LEAN_EXPORT lean_object* l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_Lake_DSL_expandIdentOrStrAsIdent(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__1;
lean_object* l_Lean_MacroScopesView_review(lean_object*);
lean_object* l_Lake_DSL_elabConfig(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl__1___closed__1;
static lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__2;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___lam__0(lean_object*, lean_object*);
lean_object* l_String_toRawSubstring_x27(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__9;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__59;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__11;
extern lean_object* l_Lake_instTypeNameLeanExeDecl_unsafe__1;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__41;
lean_object* l_Lean_Elab_Command_getRef___redArg(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__2;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__35;
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__5;
LEAN_EXPORT lean_object* l_Lake_DSL_mkTargetDecl___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__16;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__15;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__15;
static lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__3;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__12;
lean_object* l_Lean_Syntax_node4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_List_head_x21___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__28;
LEAN_EXPORT lean_object* l_Lake_DSL_mkLibraryFacetDecl___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__4;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand__1___boxed(lean_object*);
extern lean_object* l_Lake_instTypeNameLeanLibDecl_unsafe__1;
LEAN_EXPORT lean_object* l_Lake_DSL_mkLibraryFacetDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__4;
static lean_object* l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__2___closed__0;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__47;
uint8_t l_Lean_Name_hasMacroScopes(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand__1___closed__0;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand__1();
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__1___closed__0;
lean_object* l_Lean_Elab_Command_withMacroExpansion___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_DSL_mkExternLibDecl___lam__0___boxed(lean_object*);
static lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__4;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__5;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__10;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__5;
static lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__12;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__27;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__67;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__20;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__9;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__4;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand__1();
lean_object* l_Lean_Syntax_SepArray_ofElems(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_DSL_mkLibraryFacetDecl___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__5;
LEAN_EXPORT lean_object* l_Lake_DSL_mkPackageFacetDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__0;
lean_object* l_Lean_mkIdentFromRef___redArg(lean_object*, lean_object*, lean_object*, uint8_t);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand__1___closed__0;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__12;
LEAN_EXPORT uint8_t l_Lean_Option_get___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__1(lean_object*, lean_object*);
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl__1();
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1___boxed(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__11;
lean_object* l_Lake_DSL_expandAttrs(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__36;
lean_object* l_Lean_Syntax_node7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lake_instTypeNameInputDirDecl_unsafe__1;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__28;
lean_object* l_Lean_Elab_Command_instMonadCommandElabM___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___redArg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__22;
LEAN_EXPORT lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_ReaderT_instApplicativeOfMonad___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__18;
LEAN_EXPORT lean_object* l_Lake_DSL_mkConfigDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Syntax_isNone(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__9;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__11;
LEAN_EXPORT lean_object* l_Lake_DSL_mkPackageFacetDecl___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Array_append___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__3;
LEAN_EXPORT lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__0;
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__4;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__14;
static lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__13;
lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand__1___closed__0;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__3;
lean_object* l_Lake_Job_toOpaque___redArg(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__10;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__10;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand__1___closed__1;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__64;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__3;
LEAN_EXPORT lean_object* l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__39;
LEAN_EXPORT lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_ReaderT_instApplicativeOfMonad___lam__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__65;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl__1___boxed(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__11;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__21;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__9;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand__1___boxed(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__6;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__14;
static lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__2;
lean_object* l_Lean_Syntax_node8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__4;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand__1();
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__32;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__16;
LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__26;
LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___lam__0___closed__0;
lean_object* l_Lean_Macro_throwErrorAt___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lake_Module_keyword;
lean_object* lean_st_ref_set(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_mkStr1(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__1;
lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__10;
lean_object* l_Lean_Syntax_mkCApp(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand__1___boxed(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__5;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___lam__0(lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__5;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__18;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__3;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__1;
static lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__6;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__16;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__1;
static lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__9;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__60;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__1(lean_object*);
LEAN_EXPORT lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__15;
static lean_object* l_Lake_DSL_mkLibraryFacetDecl___lam__0___closed__0;
LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lake_InputDir_keyword;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__3;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__43;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__12;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__37;
static lean_object* l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__2___closed__1;
static lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__11;
LEAN_EXPORT lean_object* l_Lake_DSL_mkModuleFacetDecl___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__23;
extern lean_object* l_Lean_Elab_Command_instMonadRefCommandElabM;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__0;
lean_object* l_Lean_Elab_Command_getCurrMacroScope___redArg(lean_object*);
static lean_object* l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__2___closed__2;
extern lean_object* l_Lake_LeanExe_keyword;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__53;
lean_object* l_Lake_DSL_expandOptSimpleBinder(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1___closed__1;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__17;
lean_object* l_Lake_DSL_mkConfigDeclIdent(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__21;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__16;
lean_object* l_Lake_formatQuery___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__3;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__10;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__35;
extern lean_object* l_Lake_ExternLib_keyword;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__46;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__4;
static lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__0;
lean_object* l___private_Lake_DSL_DeclUtil_0__Lake_DSL_mkConfigFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__23;
lean_object* l_Lake_Name_quoteFrom(lean_object*, lean_object*, uint8_t);
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand__1();
LEAN_EXPORT lean_object* l_Lake_DSL_mkModuleFacetDecl___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__22;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___lam__0___closed__0;
LEAN_EXPORT lean_object* l_Lake_DSL_mkExternLibDecl(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__6;
LEAN_EXPORT lean_object* l_Lake_DSL_mkTargetDecl___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_mkLibraryFacetDecl___lam__0___closed__1;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__0;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__6;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__2;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__45;
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__1;
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_ReaderT_instFunctorOfMonad___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__8;
LEAN_EXPORT lean_object* l_Lake_DSL_mkModuleFacetDecl___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_12; lean_object* x_13; 
lean_inc_ref(x_4);
x_12 = lean_apply_1(x_1, x_4);
lean_inc_ref(x_9);
x_13 = l_Lake_ensureJob___redArg(x_2, x_12, x_5, x_6, x_7, x_8, x_9, x_10);
if (lean_obj_tag(x_13) == 0)
{
uint8_t x_14; 
x_14 = !lean_is_exclusive(x_13);
if (x_14 == 0)
{
lean_object* x_15; uint8_t x_16; 
x_15 = lean_ctor_get(x_13, 0);
x_16 = !lean_is_exclusive(x_15);
if (x_16 == 0)
{
lean_object* x_17; uint8_t x_18; 
x_17 = lean_ctor_get(x_15, 2);
lean_dec(x_17);
x_18 = !lean_is_exclusive(x_9);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; 
x_19 = lean_ctor_get(x_9, 3);
x_20 = lean_ctor_get(x_9, 2);
lean_dec(x_20);
x_21 = lean_ctor_get(x_9, 1);
lean_dec(x_21);
x_22 = lean_ctor_get(x_9, 0);
lean_dec(x_22);
x_23 = lean_st_ref_take(x_19);
x_24 = lean_ctor_get(x_4, 0);
x_25 = lean_ctor_get(x_24, 0);
x_26 = lean_ctor_get(x_4, 1);
x_27 = lean_ctor_get(x_25, 0);
x_28 = l_Lake_Module_keyword;
x_29 = l_Lean_Name_append(x_28, x_3);
lean_inc(x_26);
lean_inc(x_27);
x_30 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_30, 0, x_27);
lean_ctor_set(x_30, 1, x_26);
lean_ctor_set_tag(x_9, 1);
lean_ctor_set(x_9, 3, x_29);
lean_ctor_set(x_9, 2, x_4);
lean_ctor_set(x_9, 1, x_28);
lean_ctor_set(x_9, 0, x_30);
x_31 = l_Lake_BuildInfo_key(x_9);
x_32 = l_Lake_BuildKey_toSimpleString(x_31);
x_33 = 0;
lean_ctor_set(x_15, 2, x_32);
lean_ctor_set_uint8(x_15, sizeof(void*)*3, x_33);
lean_inc_ref(x_15);
x_34 = l_Lake_Job_toOpaque___redArg(x_15);
x_35 = lean_array_push(x_23, x_34);
x_36 = lean_st_ref_set(x_19, x_35);
lean_dec(x_19);
x_37 = l_Lake_Job_renew___redArg(x_15);
lean_ctor_set(x_13, 0, x_37);
return x_13;
}
else
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; 
x_38 = lean_ctor_get(x_9, 3);
lean_inc(x_38);
lean_dec(x_9);
x_39 = lean_st_ref_take(x_38);
x_40 = lean_ctor_get(x_4, 0);
x_41 = lean_ctor_get(x_40, 0);
x_42 = lean_ctor_get(x_4, 1);
x_43 = lean_ctor_get(x_41, 0);
x_44 = l_Lake_Module_keyword;
x_45 = l_Lean_Name_append(x_44, x_3);
lean_inc(x_42);
lean_inc(x_43);
x_46 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_46, 0, x_43);
lean_ctor_set(x_46, 1, x_42);
x_47 = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(x_47, 0, x_46);
lean_ctor_set(x_47, 1, x_44);
lean_ctor_set(x_47, 2, x_4);
lean_ctor_set(x_47, 3, x_45);
x_48 = l_Lake_BuildInfo_key(x_47);
x_49 = l_Lake_BuildKey_toSimpleString(x_48);
x_50 = 0;
lean_ctor_set(x_15, 2, x_49);
lean_ctor_set_uint8(x_15, sizeof(void*)*3, x_50);
lean_inc_ref(x_15);
x_51 = l_Lake_Job_toOpaque___redArg(x_15);
x_52 = lean_array_push(x_39, x_51);
x_53 = lean_st_ref_set(x_38, x_52);
lean_dec(x_38);
x_54 = l_Lake_Job_renew___redArg(x_15);
lean_ctor_set(x_13, 0, x_54);
return x_13;
}
}
else
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; 
x_55 = lean_ctor_get(x_15, 0);
x_56 = lean_ctor_get(x_15, 1);
lean_inc(x_56);
lean_inc(x_55);
lean_dec(x_15);
x_57 = lean_ctor_get(x_9, 3);
lean_inc(x_57);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 x_58 = x_9;
} else {
 lean_dec_ref(x_9);
 x_58 = lean_box(0);
}
x_59 = lean_st_ref_take(x_57);
x_60 = lean_ctor_get(x_4, 0);
x_61 = lean_ctor_get(x_60, 0);
x_62 = lean_ctor_get(x_4, 1);
x_63 = lean_ctor_get(x_61, 0);
x_64 = l_Lake_Module_keyword;
x_65 = l_Lean_Name_append(x_64, x_3);
lean_inc(x_62);
lean_inc(x_63);
x_66 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_66, 0, x_63);
lean_ctor_set(x_66, 1, x_62);
if (lean_is_scalar(x_58)) {
 x_67 = lean_alloc_ctor(1, 4, 0);
} else {
 x_67 = x_58;
 lean_ctor_set_tag(x_67, 1);
}
lean_ctor_set(x_67, 0, x_66);
lean_ctor_set(x_67, 1, x_64);
lean_ctor_set(x_67, 2, x_4);
lean_ctor_set(x_67, 3, x_65);
x_68 = l_Lake_BuildInfo_key(x_67);
x_69 = l_Lake_BuildKey_toSimpleString(x_68);
x_70 = 0;
x_71 = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(x_71, 0, x_55);
lean_ctor_set(x_71, 1, x_56);
lean_ctor_set(x_71, 2, x_69);
lean_ctor_set_uint8(x_71, sizeof(void*)*3, x_70);
lean_inc_ref(x_71);
x_72 = l_Lake_Job_toOpaque___redArg(x_71);
x_73 = lean_array_push(x_59, x_72);
x_74 = lean_st_ref_set(x_57, x_73);
lean_dec(x_57);
x_75 = l_Lake_Job_renew___redArg(x_71);
lean_ctor_set(x_13, 0, x_75);
return x_13;
}
}
else
{
lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; 
x_76 = lean_ctor_get(x_13, 0);
x_77 = lean_ctor_get(x_13, 1);
lean_inc(x_77);
lean_inc(x_76);
lean_dec(x_13);
x_78 = lean_ctor_get(x_76, 0);
lean_inc_ref(x_78);
x_79 = lean_ctor_get(x_76, 1);
lean_inc(x_79);
if (lean_is_exclusive(x_76)) {
 lean_ctor_release(x_76, 0);
 lean_ctor_release(x_76, 1);
 lean_ctor_release(x_76, 2);
 x_80 = x_76;
} else {
 lean_dec_ref(x_76);
 x_80 = lean_box(0);
}
x_81 = lean_ctor_get(x_9, 3);
lean_inc(x_81);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 x_82 = x_9;
} else {
 lean_dec_ref(x_9);
 x_82 = lean_box(0);
}
x_83 = lean_st_ref_take(x_81);
x_84 = lean_ctor_get(x_4, 0);
x_85 = lean_ctor_get(x_84, 0);
x_86 = lean_ctor_get(x_4, 1);
x_87 = lean_ctor_get(x_85, 0);
x_88 = l_Lake_Module_keyword;
x_89 = l_Lean_Name_append(x_88, x_3);
lean_inc(x_86);
lean_inc(x_87);
x_90 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_90, 0, x_87);
lean_ctor_set(x_90, 1, x_86);
if (lean_is_scalar(x_82)) {
 x_91 = lean_alloc_ctor(1, 4, 0);
} else {
 x_91 = x_82;
 lean_ctor_set_tag(x_91, 1);
}
lean_ctor_set(x_91, 0, x_90);
lean_ctor_set(x_91, 1, x_88);
lean_ctor_set(x_91, 2, x_4);
lean_ctor_set(x_91, 3, x_89);
x_92 = l_Lake_BuildInfo_key(x_91);
x_93 = l_Lake_BuildKey_toSimpleString(x_92);
x_94 = 0;
if (lean_is_scalar(x_80)) {
 x_95 = lean_alloc_ctor(0, 3, 1);
} else {
 x_95 = x_80;
}
lean_ctor_set(x_95, 0, x_78);
lean_ctor_set(x_95, 1, x_79);
lean_ctor_set(x_95, 2, x_93);
lean_ctor_set_uint8(x_95, sizeof(void*)*3, x_94);
lean_inc_ref(x_95);
x_96 = l_Lake_Job_toOpaque___redArg(x_95);
x_97 = lean_array_push(x_83, x_96);
x_98 = lean_st_ref_set(x_81, x_97);
lean_dec(x_81);
x_99 = l_Lake_Job_renew___redArg(x_95);
x_100 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_100, 0, x_99);
lean_ctor_set(x_100, 1, x_77);
return x_100;
}
}
else
{
lean_dec_ref(x_9);
lean_dec_ref(x_4);
lean_dec(x_3);
return x_13;
}
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_mkModuleFacetDecl___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; 
x_12 = l_Lake_DSL_mkModuleFacetDecl___lam__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
return x_12;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_mkModuleFacetDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
lean_inc(x_2);
lean_inc(x_3);
x_7 = lean_alloc_closure((void*)(l_Lake_DSL_mkModuleFacetDecl___lam__0___boxed), 11, 3);
lean_closure_set(x_7, 0, x_6);
lean_closure_set(x_7, 1, x_3);
lean_closure_set(x_7, 2, x_2);
x_8 = l_Lake_Module_keyword;
x_9 = l_Lean_Name_append(x_8, x_2);
x_10 = 1;
x_11 = lean_alloc_closure((void*)(l_Lake_formatQuery___boxed), 4, 2);
lean_closure_set(x_11, 0, lean_box(0));
lean_closure_set(x_11, 1, x_4);
x_12 = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(x_12, 0, x_8);
lean_ctor_set(x_12, 1, x_7);
lean_ctor_set(x_12, 2, x_3);
lean_ctor_set(x_12, 3, x_11);
lean_ctor_set_uint8(x_12, sizeof(void*)*4, x_10);
lean_ctor_set_uint8(x_12, sizeof(void*)*4 + 1, x_10);
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_9);
lean_ctor_set(x_13, 1, x_12);
return x_13;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_mkModuleFacetDecl___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
lean_inc(x_1);
lean_inc(x_2);
x_5 = lean_alloc_closure((void*)(l_Lake_DSL_mkModuleFacetDecl___lam__0___boxed), 11, 3);
lean_closure_set(x_5, 0, x_4);
lean_closure_set(x_5, 1, x_2);
lean_closure_set(x_5, 2, x_1);
x_6 = l_Lake_Module_keyword;
x_7 = l_Lean_Name_append(x_6, x_1);
x_8 = 1;
x_9 = lean_alloc_closure((void*)(l_Lake_formatQuery___boxed), 4, 2);
lean_closure_set(x_9, 0, lean_box(0));
lean_closure_set(x_9, 1, x_3);
x_10 = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(x_10, 0, x_6);
lean_ctor_set(x_10, 1, x_5);
lean_ctor_set(x_10, 2, x_2);
lean_ctor_set(x_10, 3, x_9);
lean_ctor_set_uint8(x_10, sizeof(void*)*4, x_8);
lean_ctor_set_uint8(x_10, sizeof(void*)*4 + 1, x_8);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_7);
lean_ctor_set(x_11, 1, x_10);
return x_11;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___lam__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("_modFacet", 9, 9);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___lam__0___closed__0;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lake", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("DSL", 3, 3);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("moduleFacetDecl", 15, 15);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__2;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ill-formed module facet declaration", 35, 35);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("attributes", 10, 10);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("@[", 2, 2);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(",", 1, 1);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("]", 1, 1);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("abbrev", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("declId", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(2u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__13() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("optDeclSig", 10, 10);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__14() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(":=", 2, 2);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__15() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("app", 3, 3);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__16() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lake.DSL.mkModuleFacetDecl", 26, 26);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__16;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__18() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("mkModuleFacetDecl", 17, 17);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__19() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__18;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__20() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__19;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__21() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("paren", 5, 5);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__22() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("hygienicLParen", 14, 14);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__23() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(", 1, 1);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__24() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("hygieneInfo", 11, 11);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__25() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__24;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__26() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("", 0, 0);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__27() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__26;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__28() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__29() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__28;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__30() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Elab", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__31() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("fun", 3, 3);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__32() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("basicFun", 8, 8);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__33() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("=>", 2, 2);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__34() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(")", 1, 1);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__35() {
_start:
{
lean_object* x_1; 
x_1 = l_Array_empty(lean_box(0));
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__36() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("moduleDataDecl", 14, 14);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__37() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__36;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__38() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("module_data", 11, 11);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__39() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(":", 1, 1);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__40() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("declaration", 11, 11);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__41() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("declModifiers", 13, 13);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__42() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("attrInstance", 12, 12);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__43() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("attrKind", 8, 8);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__44() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("null", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__45() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__44;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__46() {
_start:
{
lean_object* x_1; 
x_1 = l_Array_mkArray0(lean_box(0));
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__47() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Attr", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__48() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("simple", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__49() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("«module_facet»", 16, 14);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__50() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__49;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__51() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("module_facet", 12, 12);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__52() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__51;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__53() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(1u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Parser", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Term", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__57() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("typeSpec", 8, 8);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__58() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__57;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55;
x_4 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__59() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Command", 7, 7);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__60() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("declValSimple", 13, 13);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__61() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__60;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__59;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55;
x_4 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__62() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Termination", 11, 11);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__63() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("suffix", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__64() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__63;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__62;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55;
x_4 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__65() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("whereDecls", 10, 10);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__66() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__65;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55;
x_4 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__67() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("buildDeclSig", 12, 12);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__68() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__67;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_28; uint8_t x_29; 
x_28 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__3;
lean_inc(x_1);
x_29 = l_Lean_Syntax_isOfKind(x_1, x_28);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; 
x_30 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__4;
x_31 = l_Lean_Macro_throwErrorAt___redArg(x_1, x_30, x_2, x_3);
lean_dec(x_1);
return x_31;
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; uint8_t x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_375; lean_object* x_382; 
x_32 = lean_unsigned_to_nat(0u);
x_33 = l_Lean_Syntax_getArg(x_1, x_32);
x_34 = lean_unsigned_to_nat(1u);
x_35 = l_Lean_Syntax_getArg(x_1, x_34);
x_36 = lean_unsigned_to_nat(2u);
x_200 = l_Lean_Syntax_getArg(x_1, x_36);
x_309 = lean_unsigned_to_nat(3u);
x_310 = l_Lean_Syntax_getArg(x_1, x_309);
lean_dec(x_1);
x_359 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__68;
x_382 = l_Lean_Syntax_getOptional_x3f(x_35);
lean_dec(x_35);
if (lean_obj_tag(x_382) == 0)
{
lean_object* x_383; 
x_383 = lean_box(0);
x_375 = x_383;
goto block_381;
}
else
{
uint8_t x_384; 
x_384 = !lean_is_exclusive(x_382);
if (x_384 == 0)
{
x_375 = x_382;
goto block_381;
}
else
{
lean_object* x_385; lean_object* x_386; 
x_385 = lean_ctor_get(x_382, 0);
lean_inc(x_385);
lean_dec(x_382);
x_386 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_386, 0, x_385);
x_375 = x_386;
goto block_381;
}
}
block_152:
{
lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; 
lean_inc_ref(x_54);
x_62 = l_Array_append___redArg(x_54, x_61);
lean_dec_ref(x_61);
lean_inc(x_45);
lean_inc(x_53);
x_63 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_63, 0, x_53);
lean_ctor_set(x_63, 1, x_45);
lean_ctor_set(x_63, 2, x_62);
x_64 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__5;
lean_inc_ref(x_48);
lean_inc_ref(x_47);
lean_inc_ref(x_59);
x_65 = l_Lean_Name_mkStr4(x_59, x_47, x_48, x_64);
x_66 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__6;
lean_inc(x_53);
x_67 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_67, 0, x_53);
lean_ctor_set(x_67, 1, x_66);
x_68 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__7;
x_69 = l_Lean_Syntax_SepArray_ofElems(x_68, x_58);
lean_dec_ref(x_58);
lean_inc_ref(x_54);
x_70 = l_Array_append___redArg(x_54, x_69);
lean_dec_ref(x_69);
lean_inc(x_45);
lean_inc(x_53);
x_71 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_71, 0, x_53);
lean_ctor_set(x_71, 1, x_45);
lean_ctor_set(x_71, 2, x_70);
x_72 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__8;
lean_inc(x_53);
x_73 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_73, 0, x_53);
lean_ctor_set(x_73, 1, x_72);
lean_inc(x_53);
x_74 = l_Lean_Syntax_node3(x_53, x_65, x_67, x_71, x_73);
lean_inc(x_45);
lean_inc(x_53);
x_75 = l_Lean_Syntax_node1(x_53, x_45, x_74);
lean_inc_n(x_51, 5);
lean_inc(x_53);
x_76 = l_Lean_Syntax_node7(x_53, x_46, x_63, x_75, x_51, x_51, x_51, x_51, x_51);
x_77 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__9;
lean_inc_ref(x_37);
lean_inc_ref(x_47);
lean_inc_ref(x_59);
x_78 = l_Lean_Name_mkStr4(x_59, x_47, x_37, x_77);
lean_inc(x_53);
x_79 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_79, 0, x_53);
lean_ctor_set(x_79, 1, x_77);
x_80 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__10;
lean_inc_ref(x_37);
lean_inc_ref(x_47);
lean_inc_ref(x_59);
x_81 = l_Lean_Name_mkStr4(x_59, x_47, x_37, x_80);
x_82 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__11;
x_83 = lean_box(2);
lean_inc(x_45);
x_84 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_84, 0, x_83);
lean_ctor_set(x_84, 1, x_45);
lean_ctor_set(x_84, 2, x_82);
x_85 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__12;
x_86 = lean_array_push(x_85, x_60);
x_87 = lean_array_push(x_86, x_84);
x_88 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_88, 0, x_83);
lean_ctor_set(x_88, 1, x_81);
lean_ctor_set(x_88, 2, x_87);
x_89 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__13;
lean_inc_ref(x_37);
lean_inc_ref(x_47);
lean_inc_ref(x_59);
x_90 = l_Lean_Name_mkStr4(x_59, x_47, x_37, x_89);
lean_inc_n(x_51, 2);
lean_inc(x_53);
x_91 = l_Lean_Syntax_node2(x_53, x_90, x_51, x_51);
x_92 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__14;
lean_inc(x_53);
x_93 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_93, 0, x_53);
lean_ctor_set(x_93, 1, x_92);
x_94 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__15;
lean_inc_ref(x_48);
lean_inc_ref(x_47);
lean_inc_ref(x_59);
x_95 = l_Lean_Name_mkStr4(x_59, x_47, x_48, x_94);
x_96 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__17;
x_97 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__19;
lean_inc(x_43);
lean_inc(x_40);
x_98 = l_Lean_addMacroScope(x_40, x_97, x_43);
x_99 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__20;
lean_inc(x_41);
x_100 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_100, 0, x_99);
lean_ctor_set(x_100, 1, x_41);
lean_inc(x_53);
x_101 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_101, 0, x_53);
lean_ctor_set(x_101, 1, x_96);
lean_ctor_set(x_101, 2, x_98);
lean_ctor_set(x_101, 3, x_100);
x_102 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__21;
lean_inc_ref(x_48);
lean_inc_ref(x_47);
lean_inc_ref(x_59);
x_103 = l_Lean_Name_mkStr4(x_59, x_47, x_48, x_102);
x_104 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__22;
lean_inc_ref(x_48);
lean_inc_ref(x_47);
lean_inc_ref(x_59);
x_105 = l_Lean_Name_mkStr4(x_59, x_47, x_48, x_104);
x_106 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__23;
lean_inc(x_53);
x_107 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_107, 0, x_53);
lean_ctor_set(x_107, 1, x_106);
x_108 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__25;
x_109 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__27;
x_110 = lean_box(0);
x_111 = l_Lean_addMacroScope(x_40, x_110, x_43);
x_112 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__29;
lean_inc_ref(x_37);
lean_inc_ref(x_47);
lean_inc_ref(x_59);
x_113 = l_Lean_Name_mkStr3(x_59, x_47, x_37);
x_114 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_114, 0, x_113);
x_115 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__30;
lean_inc_ref(x_59);
x_116 = l_Lean_Name_mkStr3(x_59, x_115, x_37);
x_117 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_117, 0, x_116);
lean_inc_ref(x_59);
x_118 = l_Lean_Name_mkStr2(x_59, x_115);
x_119 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_119, 0, x_118);
lean_inc_ref(x_47);
lean_inc_ref(x_59);
x_120 = l_Lean_Name_mkStr2(x_59, x_47);
x_121 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_121, 0, x_120);
lean_inc_ref(x_59);
x_122 = l_Lean_Name_mkStr1(x_59);
x_123 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_123, 0, x_122);
x_124 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_124, 0, x_123);
lean_ctor_set(x_124, 1, x_41);
x_125 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_125, 0, x_121);
lean_ctor_set(x_125, 1, x_124);
x_126 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_126, 0, x_119);
lean_ctor_set(x_126, 1, x_125);
x_127 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_127, 0, x_117);
lean_ctor_set(x_127, 1, x_126);
x_128 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_128, 0, x_114);
lean_ctor_set(x_128, 1, x_127);
x_129 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_129, 0, x_112);
lean_ctor_set(x_129, 1, x_128);
lean_inc(x_53);
x_130 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_130, 0, x_53);
lean_ctor_set(x_130, 1, x_109);
lean_ctor_set(x_130, 2, x_111);
lean_ctor_set(x_130, 3, x_129);
lean_inc(x_53);
x_131 = l_Lean_Syntax_node1(x_53, x_108, x_130);
lean_inc(x_53);
x_132 = l_Lean_Syntax_node2(x_53, x_105, x_107, x_131);
x_133 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__31;
lean_inc_ref(x_48);
lean_inc_ref(x_47);
lean_inc_ref(x_59);
x_134 = l_Lean_Name_mkStr4(x_59, x_47, x_48, x_133);
lean_inc(x_53);
x_135 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_135, 0, x_53);
lean_ctor_set(x_135, 1, x_133);
x_136 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__32;
x_137 = l_Lean_Name_mkStr4(x_59, x_47, x_48, x_136);
lean_inc(x_45);
lean_inc(x_53);
x_138 = l_Lean_Syntax_node1(x_53, x_45, x_39);
x_139 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__33;
lean_inc(x_53);
x_140 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_140, 0, x_53);
lean_ctor_set(x_140, 1, x_139);
lean_inc(x_51);
lean_inc(x_53);
x_141 = l_Lean_Syntax_node4(x_53, x_137, x_138, x_51, x_140, x_52);
lean_inc(x_53);
x_142 = l_Lean_Syntax_node2(x_53, x_134, x_135, x_141);
x_143 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__34;
lean_inc(x_53);
x_144 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_144, 0, x_53);
lean_ctor_set(x_144, 1, x_143);
lean_inc(x_53);
x_145 = l_Lean_Syntax_node3(x_53, x_103, x_132, x_142, x_144);
lean_inc(x_45);
lean_inc(x_53);
x_146 = l_Lean_Syntax_node3(x_53, x_45, x_56, x_50, x_145);
lean_inc(x_53);
x_147 = l_Lean_Syntax_node2(x_53, x_95, x_101, x_146);
lean_inc(x_51);
lean_inc(x_53);
x_148 = l_Lean_Syntax_node2(x_53, x_38, x_51, x_51);
if (lean_obj_tag(x_57) == 1)
{
lean_object* x_149; lean_object* x_150; 
x_149 = lean_ctor_get(x_57, 0);
lean_inc(x_149);
lean_dec_ref(x_57);
x_150 = l_Array_mkArray1___redArg(x_149);
x_4 = x_78;
x_5 = x_93;
x_6 = x_88;
x_7 = x_42;
x_8 = x_44;
x_9 = x_45;
x_10 = x_147;
x_11 = x_148;
x_12 = x_91;
x_13 = x_49;
x_14 = x_53;
x_15 = x_54;
x_16 = x_55;
x_17 = x_79;
x_18 = x_76;
x_19 = x_150;
goto block_27;
}
else
{
lean_object* x_151; 
lean_dec(x_57);
x_151 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__35;
x_4 = x_78;
x_5 = x_93;
x_6 = x_88;
x_7 = x_42;
x_8 = x_44;
x_9 = x_45;
x_10 = x_147;
x_11 = x_148;
x_12 = x_91;
x_13 = x_49;
x_14 = x_53;
x_15 = x_54;
x_16 = x_55;
x_17 = x_79;
x_18 = x_76;
x_19 = x_151;
goto block_27;
}
}
block_199:
{
lean_object* x_178; 
x_178 = l_Lake_DSL_expandOptSimpleBinder(x_166, x_170, x_172);
if (lean_obj_tag(x_178) == 0)
{
lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; 
x_179 = lean_ctor_get(x_178, 0);
lean_inc(x_179);
x_180 = lean_ctor_get(x_178, 1);
lean_inc(x_180);
lean_dec_ref(x_178);
x_181 = l_Lean_mkIdentFrom(x_168, x_177, x_173);
x_182 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__37;
x_183 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__38;
lean_inc(x_167);
x_184 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_184, 0, x_167);
lean_ctor_set(x_184, 1, x_183);
x_185 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__39;
lean_inc(x_167);
x_186 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_186, 0, x_167);
lean_ctor_set(x_186, 1, x_185);
lean_inc(x_171);
lean_inc(x_164);
lean_inc(x_167);
x_187 = l_Lean_Syntax_node5(x_167, x_182, x_164, x_184, x_168, x_186, x_171);
x_188 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__40;
lean_inc_ref(x_153);
lean_inc_ref(x_160);
lean_inc_ref(x_176);
x_189 = l_Lean_Name_mkStr4(x_176, x_160, x_153, x_188);
x_190 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__41;
lean_inc_ref(x_153);
lean_inc_ref(x_160);
lean_inc_ref(x_176);
x_191 = l_Lean_Name_mkStr4(x_176, x_160, x_153, x_190);
if (lean_obj_tag(x_157) == 1)
{
lean_object* x_192; lean_object* x_193; 
x_192 = lean_ctor_get(x_157, 0);
lean_inc(x_192);
lean_dec_ref(x_157);
x_193 = l_Array_mkArray1___redArg(x_192);
x_37 = x_153;
x_38 = x_154;
x_39 = x_179;
x_40 = x_155;
x_41 = x_156;
x_42 = x_189;
x_43 = x_158;
x_44 = x_180;
x_45 = x_159;
x_46 = x_191;
x_47 = x_160;
x_48 = x_161;
x_49 = x_163;
x_50 = x_162;
x_51 = x_164;
x_52 = x_165;
x_53 = x_167;
x_54 = x_169;
x_55 = x_187;
x_56 = x_171;
x_57 = x_174;
x_58 = x_175;
x_59 = x_176;
x_60 = x_181;
x_61 = x_193;
goto block_152;
}
else
{
lean_object* x_194; 
lean_dec(x_157);
x_194 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__35;
x_37 = x_153;
x_38 = x_154;
x_39 = x_179;
x_40 = x_155;
x_41 = x_156;
x_42 = x_189;
x_43 = x_158;
x_44 = x_180;
x_45 = x_159;
x_46 = x_191;
x_47 = x_160;
x_48 = x_161;
x_49 = x_163;
x_50 = x_162;
x_51 = x_164;
x_52 = x_165;
x_53 = x_167;
x_54 = x_169;
x_55 = x_187;
x_56 = x_171;
x_57 = x_174;
x_58 = x_175;
x_59 = x_176;
x_60 = x_181;
x_61 = x_194;
goto block_152;
}
}
else
{
uint8_t x_195; 
lean_dec(x_177);
lean_dec_ref(x_176);
lean_dec_ref(x_175);
lean_dec(x_174);
lean_dec(x_171);
lean_dec_ref(x_169);
lean_dec(x_168);
lean_dec(x_167);
lean_dec(x_165);
lean_dec(x_164);
lean_dec(x_163);
lean_dec(x_162);
lean_dec_ref(x_161);
lean_dec_ref(x_160);
lean_dec(x_159);
lean_dec(x_158);
lean_dec(x_157);
lean_dec(x_156);
lean_dec(x_155);
lean_dec(x_154);
lean_dec_ref(x_153);
x_195 = !lean_is_exclusive(x_178);
if (x_195 == 0)
{
return x_178;
}
else
{
lean_object* x_196; lean_object* x_197; lean_object* x_198; 
x_196 = lean_ctor_get(x_178, 0);
x_197 = lean_ctor_get(x_178, 1);
lean_inc(x_197);
lean_inc(x_196);
lean_dec(x_178);
x_198 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_198, 0, x_196);
lean_ctor_set(x_198, 1, x_197);
return x_198;
}
}
}
block_308:
{
uint8_t x_216; 
x_216 = !lean_is_exclusive(x_214);
if (x_216 == 0)
{
lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; uint8_t x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; uint8_t x_248; 
x_217 = lean_ctor_get(x_214, 1);
x_218 = lean_ctor_get(x_214, 2);
x_219 = lean_ctor_get(x_214, 5);
x_220 = l_Lean_replaceRef(x_200, x_219);
lean_dec(x_219);
lean_dec(x_200);
lean_inc(x_220);
lean_inc(x_218);
lean_inc(x_217);
lean_ctor_set(x_214, 5, x_220);
x_221 = 0;
x_222 = l_Lean_SourceInfo_fromRef(x_220, x_221);
lean_dec(x_220);
x_223 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__42;
lean_inc_ref(x_204);
lean_inc_ref(x_211);
lean_inc_ref(x_212);
x_224 = l_Lean_Name_mkStr4(x_212, x_211, x_204, x_223);
x_225 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__43;
lean_inc_ref(x_204);
lean_inc_ref(x_211);
lean_inc_ref(x_212);
x_226 = l_Lean_Name_mkStr4(x_212, x_211, x_204, x_225);
x_227 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__45;
x_228 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__46;
lean_inc(x_222);
x_229 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_229, 0, x_222);
lean_ctor_set(x_229, 1, x_227);
lean_ctor_set(x_229, 2, x_228);
lean_inc_ref(x_229);
lean_inc(x_222);
x_230 = l_Lean_Syntax_node1(x_222, x_226, x_229);
x_231 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__47;
x_232 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__48;
lean_inc_ref(x_211);
lean_inc_ref(x_212);
x_233 = l_Lean_Name_mkStr4(x_212, x_211, x_231, x_232);
x_234 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__50;
x_235 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__52;
lean_inc(x_218);
lean_inc(x_217);
x_236 = l_Lean_addMacroScope(x_217, x_235, x_218);
x_237 = lean_box(0);
lean_inc(x_222);
x_238 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_238, 0, x_222);
lean_ctor_set(x_238, 1, x_234);
lean_ctor_set(x_238, 2, x_236);
lean_ctor_set(x_238, 3, x_237);
lean_inc_ref(x_229);
lean_inc(x_222);
x_239 = l_Lean_Syntax_node2(x_222, x_233, x_238, x_229);
lean_inc(x_222);
x_240 = l_Lean_Syntax_node2(x_222, x_224, x_230, x_239);
x_241 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__53;
x_242 = lean_array_push(x_241, x_240);
x_243 = l_Lake_DSL_expandAttrs(x_202);
x_244 = l_Array_append___redArg(x_242, x_243);
lean_dec_ref(x_243);
x_245 = l_Lake_DSL_expandIdentOrStrAsIdent(x_209);
x_246 = l_Lean_TSyntax_getId(x_245);
lean_inc(x_246);
lean_inc(x_245);
x_247 = l_Lake_Name_quoteFrom(x_245, x_246, x_221);
x_248 = l_Lean_Name_hasMacroScopes(x_246);
if (x_248 == 0)
{
lean_object* x_249; 
x_249 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___lam__0(x_246);
x_153 = x_201;
x_154 = x_203;
x_155 = x_217;
x_156 = x_237;
x_157 = x_208;
x_158 = x_218;
x_159 = x_227;
x_160 = x_211;
x_161 = x_204;
x_162 = x_247;
x_163 = x_205;
x_164 = x_229;
x_165 = x_206;
x_166 = x_207;
x_167 = x_222;
x_168 = x_245;
x_169 = x_228;
x_170 = x_214;
x_171 = x_210;
x_172 = x_215;
x_173 = x_221;
x_174 = x_213;
x_175 = x_244;
x_176 = x_212;
x_177 = x_249;
goto block_199;
}
else
{
lean_object* x_250; uint8_t x_251; 
x_250 = l_Lean_extractMacroScopes(x_246);
x_251 = !lean_is_exclusive(x_250);
if (x_251 == 0)
{
lean_object* x_252; lean_object* x_253; lean_object* x_254; 
x_252 = lean_ctor_get(x_250, 0);
x_253 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___lam__0(x_252);
lean_ctor_set(x_250, 0, x_253);
x_254 = l_Lean_MacroScopesView_review(x_250);
x_153 = x_201;
x_154 = x_203;
x_155 = x_217;
x_156 = x_237;
x_157 = x_208;
x_158 = x_218;
x_159 = x_227;
x_160 = x_211;
x_161 = x_204;
x_162 = x_247;
x_163 = x_205;
x_164 = x_229;
x_165 = x_206;
x_166 = x_207;
x_167 = x_222;
x_168 = x_245;
x_169 = x_228;
x_170 = x_214;
x_171 = x_210;
x_172 = x_215;
x_173 = x_221;
x_174 = x_213;
x_175 = x_244;
x_176 = x_212;
x_177 = x_254;
goto block_199;
}
else
{
lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; 
x_255 = lean_ctor_get(x_250, 0);
x_256 = lean_ctor_get(x_250, 1);
x_257 = lean_ctor_get(x_250, 2);
x_258 = lean_ctor_get(x_250, 3);
lean_inc(x_258);
lean_inc(x_257);
lean_inc(x_256);
lean_inc(x_255);
lean_dec(x_250);
x_259 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___lam__0(x_255);
x_260 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_260, 0, x_259);
lean_ctor_set(x_260, 1, x_256);
lean_ctor_set(x_260, 2, x_257);
lean_ctor_set(x_260, 3, x_258);
x_261 = l_Lean_MacroScopesView_review(x_260);
x_153 = x_201;
x_154 = x_203;
x_155 = x_217;
x_156 = x_237;
x_157 = x_208;
x_158 = x_218;
x_159 = x_227;
x_160 = x_211;
x_161 = x_204;
x_162 = x_247;
x_163 = x_205;
x_164 = x_229;
x_165 = x_206;
x_166 = x_207;
x_167 = x_222;
x_168 = x_245;
x_169 = x_228;
x_170 = x_214;
x_171 = x_210;
x_172 = x_215;
x_173 = x_221;
x_174 = x_213;
x_175 = x_244;
x_176 = x_212;
x_177 = x_261;
goto block_199;
}
}
}
else
{
lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; uint8_t x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; uint8_t x_297; 
x_262 = lean_ctor_get(x_214, 0);
x_263 = lean_ctor_get(x_214, 1);
x_264 = lean_ctor_get(x_214, 2);
x_265 = lean_ctor_get(x_214, 3);
x_266 = lean_ctor_get(x_214, 4);
x_267 = lean_ctor_get(x_214, 5);
lean_inc(x_267);
lean_inc(x_266);
lean_inc(x_265);
lean_inc(x_264);
lean_inc(x_263);
lean_inc(x_262);
lean_dec(x_214);
x_268 = l_Lean_replaceRef(x_200, x_267);
lean_dec(x_267);
lean_dec(x_200);
lean_inc(x_268);
lean_inc(x_264);
lean_inc(x_263);
x_269 = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(x_269, 0, x_262);
lean_ctor_set(x_269, 1, x_263);
lean_ctor_set(x_269, 2, x_264);
lean_ctor_set(x_269, 3, x_265);
lean_ctor_set(x_269, 4, x_266);
lean_ctor_set(x_269, 5, x_268);
x_270 = 0;
x_271 = l_Lean_SourceInfo_fromRef(x_268, x_270);
lean_dec(x_268);
x_272 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__42;
lean_inc_ref(x_204);
lean_inc_ref(x_211);
lean_inc_ref(x_212);
x_273 = l_Lean_Name_mkStr4(x_212, x_211, x_204, x_272);
x_274 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__43;
lean_inc_ref(x_204);
lean_inc_ref(x_211);
lean_inc_ref(x_212);
x_275 = l_Lean_Name_mkStr4(x_212, x_211, x_204, x_274);
x_276 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__45;
x_277 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__46;
lean_inc(x_271);
x_278 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_278, 0, x_271);
lean_ctor_set(x_278, 1, x_276);
lean_ctor_set(x_278, 2, x_277);
lean_inc_ref(x_278);
lean_inc(x_271);
x_279 = l_Lean_Syntax_node1(x_271, x_275, x_278);
x_280 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__47;
x_281 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__48;
lean_inc_ref(x_211);
lean_inc_ref(x_212);
x_282 = l_Lean_Name_mkStr4(x_212, x_211, x_280, x_281);
x_283 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__50;
x_284 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__52;
lean_inc(x_264);
lean_inc(x_263);
x_285 = l_Lean_addMacroScope(x_263, x_284, x_264);
x_286 = lean_box(0);
lean_inc(x_271);
x_287 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_287, 0, x_271);
lean_ctor_set(x_287, 1, x_283);
lean_ctor_set(x_287, 2, x_285);
lean_ctor_set(x_287, 3, x_286);
lean_inc_ref(x_278);
lean_inc(x_271);
x_288 = l_Lean_Syntax_node2(x_271, x_282, x_287, x_278);
lean_inc(x_271);
x_289 = l_Lean_Syntax_node2(x_271, x_273, x_279, x_288);
x_290 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__53;
x_291 = lean_array_push(x_290, x_289);
x_292 = l_Lake_DSL_expandAttrs(x_202);
x_293 = l_Array_append___redArg(x_291, x_292);
lean_dec_ref(x_292);
x_294 = l_Lake_DSL_expandIdentOrStrAsIdent(x_209);
x_295 = l_Lean_TSyntax_getId(x_294);
lean_inc(x_295);
lean_inc(x_294);
x_296 = l_Lake_Name_quoteFrom(x_294, x_295, x_270);
x_297 = l_Lean_Name_hasMacroScopes(x_295);
if (x_297 == 0)
{
lean_object* x_298; 
x_298 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___lam__0(x_295);
x_153 = x_201;
x_154 = x_203;
x_155 = x_263;
x_156 = x_286;
x_157 = x_208;
x_158 = x_264;
x_159 = x_276;
x_160 = x_211;
x_161 = x_204;
x_162 = x_296;
x_163 = x_205;
x_164 = x_278;
x_165 = x_206;
x_166 = x_207;
x_167 = x_271;
x_168 = x_294;
x_169 = x_277;
x_170 = x_269;
x_171 = x_210;
x_172 = x_215;
x_173 = x_270;
x_174 = x_213;
x_175 = x_293;
x_176 = x_212;
x_177 = x_298;
goto block_199;
}
else
{
lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; 
x_299 = l_Lean_extractMacroScopes(x_295);
x_300 = lean_ctor_get(x_299, 0);
lean_inc(x_300);
x_301 = lean_ctor_get(x_299, 1);
lean_inc(x_301);
x_302 = lean_ctor_get(x_299, 2);
lean_inc(x_302);
x_303 = lean_ctor_get(x_299, 3);
lean_inc(x_303);
if (lean_is_exclusive(x_299)) {
 lean_ctor_release(x_299, 0);
 lean_ctor_release(x_299, 1);
 lean_ctor_release(x_299, 2);
 lean_ctor_release(x_299, 3);
 x_304 = x_299;
} else {
 lean_dec_ref(x_299);
 x_304 = lean_box(0);
}
x_305 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___lam__0(x_300);
if (lean_is_scalar(x_304)) {
 x_306 = lean_alloc_ctor(0, 4, 0);
} else {
 x_306 = x_304;
}
lean_ctor_set(x_306, 0, x_305);
lean_ctor_set(x_306, 1, x_301);
lean_ctor_set(x_306, 2, x_302);
lean_ctor_set(x_306, 3, x_303);
x_307 = l_Lean_MacroScopesView_review(x_306);
x_153 = x_201;
x_154 = x_203;
x_155 = x_263;
x_156 = x_286;
x_157 = x_208;
x_158 = x_264;
x_159 = x_276;
x_160 = x_211;
x_161 = x_204;
x_162 = x_296;
x_163 = x_205;
x_164 = x_278;
x_165 = x_206;
x_166 = x_207;
x_167 = x_271;
x_168 = x_294;
x_169 = x_277;
x_170 = x_269;
x_171 = x_210;
x_172 = x_215;
x_173 = x_270;
x_174 = x_213;
x_175 = x_293;
x_176 = x_212;
x_177 = x_307;
goto block_199;
}
}
}
block_358:
{
lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; uint8_t x_322; 
x_317 = l_Lean_Syntax_getArg(x_310, x_36);
x_318 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54;
x_319 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55;
x_320 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56;
x_321 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__58;
lean_inc(x_317);
x_322 = l_Lean_Syntax_isOfKind(x_317, x_321);
if (x_322 == 0)
{
lean_object* x_323; lean_object* x_324; 
lean_dec(x_317);
lean_dec(x_314);
lean_dec(x_313);
lean_dec(x_312);
lean_dec(x_311);
lean_dec(x_200);
x_323 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__4;
x_324 = l_Lean_Macro_throwErrorAt___redArg(x_310, x_323, x_315, x_316);
lean_dec(x_310);
return x_324;
}
else
{
lean_object* x_325; lean_object* x_326; lean_object* x_327; uint8_t x_328; 
x_325 = l_Lean_Syntax_getArg(x_310, x_309);
x_326 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__59;
x_327 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__61;
lean_inc(x_325);
x_328 = l_Lean_Syntax_isOfKind(x_325, x_327);
if (x_328 == 0)
{
lean_object* x_329; lean_object* x_330; 
lean_dec(x_325);
lean_dec(x_317);
lean_dec(x_314);
lean_dec(x_313);
lean_dec(x_312);
lean_dec(x_311);
lean_dec(x_200);
x_329 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__4;
x_330 = l_Lean_Macro_throwErrorAt___redArg(x_310, x_329, x_315, x_316);
lean_dec(x_310);
return x_330;
}
else
{
lean_object* x_331; lean_object* x_332; uint8_t x_333; 
x_331 = l_Lean_Syntax_getArg(x_325, x_36);
x_332 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__64;
lean_inc(x_331);
x_333 = l_Lean_Syntax_isOfKind(x_331, x_332);
if (x_333 == 0)
{
lean_object* x_334; lean_object* x_335; 
lean_dec(x_331);
lean_dec(x_325);
lean_dec(x_317);
lean_dec(x_314);
lean_dec(x_313);
lean_dec(x_312);
lean_dec(x_311);
lean_dec(x_200);
x_334 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__4;
x_335 = l_Lean_Macro_throwErrorAt___redArg(x_310, x_334, x_315, x_316);
lean_dec(x_310);
return x_335;
}
else
{
lean_object* x_336; uint8_t x_337; 
x_336 = l_Lean_Syntax_getArg(x_331, x_32);
x_337 = l_Lean_Syntax_matchesNull(x_336, x_32);
if (x_337 == 0)
{
lean_object* x_338; lean_object* x_339; 
lean_dec(x_331);
lean_dec(x_325);
lean_dec(x_317);
lean_dec(x_314);
lean_dec(x_313);
lean_dec(x_312);
lean_dec(x_311);
lean_dec(x_200);
x_338 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__4;
x_339 = l_Lean_Macro_throwErrorAt___redArg(x_310, x_338, x_315, x_316);
lean_dec(x_310);
return x_339;
}
else
{
lean_object* x_340; uint8_t x_341; 
x_340 = l_Lean_Syntax_getArg(x_331, x_34);
lean_dec(x_331);
x_341 = l_Lean_Syntax_matchesNull(x_340, x_32);
if (x_341 == 0)
{
lean_object* x_342; lean_object* x_343; 
lean_dec(x_325);
lean_dec(x_317);
lean_dec(x_314);
lean_dec(x_313);
lean_dec(x_312);
lean_dec(x_311);
lean_dec(x_200);
x_342 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__4;
x_343 = l_Lean_Macro_throwErrorAt___redArg(x_310, x_342, x_315, x_316);
lean_dec(x_310);
return x_343;
}
else
{
lean_object* x_344; lean_object* x_345; lean_object* x_346; uint8_t x_347; 
x_344 = l_Lean_Syntax_getArg(x_317, x_34);
lean_dec(x_317);
x_345 = l_Lean_Syntax_getArg(x_325, x_34);
x_346 = l_Lean_Syntax_getArg(x_325, x_309);
lean_dec(x_325);
x_347 = l_Lean_Syntax_isNone(x_346);
if (x_347 == 0)
{
uint8_t x_348; 
lean_inc(x_346);
x_348 = l_Lean_Syntax_matchesNull(x_346, x_34);
if (x_348 == 0)
{
lean_object* x_349; lean_object* x_350; 
lean_dec(x_346);
lean_dec(x_345);
lean_dec(x_344);
lean_dec(x_314);
lean_dec(x_313);
lean_dec(x_312);
lean_dec(x_311);
lean_dec(x_200);
x_349 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__4;
x_350 = l_Lean_Macro_throwErrorAt___redArg(x_310, x_349, x_315, x_316);
lean_dec(x_310);
return x_350;
}
else
{
lean_object* x_351; lean_object* x_352; uint8_t x_353; 
x_351 = l_Lean_Syntax_getArg(x_346, x_32);
lean_dec(x_346);
x_352 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__66;
lean_inc(x_351);
x_353 = l_Lean_Syntax_isOfKind(x_351, x_352);
if (x_353 == 0)
{
lean_object* x_354; lean_object* x_355; 
lean_dec(x_351);
lean_dec(x_345);
lean_dec(x_344);
lean_dec(x_314);
lean_dec(x_313);
lean_dec(x_312);
lean_dec(x_311);
lean_dec(x_200);
x_354 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__4;
x_355 = l_Lean_Macro_throwErrorAt___redArg(x_310, x_354, x_315, x_316);
lean_dec(x_310);
return x_355;
}
else
{
lean_object* x_356; 
lean_dec(x_310);
x_356 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_356, 0, x_351);
x_201 = x_326;
x_202 = x_311;
x_203 = x_332;
x_204 = x_320;
x_205 = x_327;
x_206 = x_345;
x_207 = x_314;
x_208 = x_313;
x_209 = x_312;
x_210 = x_344;
x_211 = x_319;
x_212 = x_318;
x_213 = x_356;
x_214 = x_315;
x_215 = x_316;
goto block_308;
}
}
}
else
{
lean_object* x_357; 
lean_dec(x_346);
lean_dec(x_310);
x_357 = lean_box(0);
x_201 = x_326;
x_202 = x_311;
x_203 = x_332;
x_204 = x_320;
x_205 = x_327;
x_206 = x_345;
x_207 = x_314;
x_208 = x_313;
x_209 = x_312;
x_210 = x_344;
x_211 = x_319;
x_212 = x_318;
x_213 = x_357;
x_214 = x_315;
x_215 = x_316;
goto block_308;
}
}
}
}
}
}
}
block_374:
{
uint8_t x_362; 
lean_inc(x_310);
x_362 = l_Lean_Syntax_isOfKind(x_310, x_359);
if (x_362 == 0)
{
lean_object* x_363; lean_object* x_364; 
lean_dec(x_361);
lean_dec(x_360);
lean_dec(x_200);
x_363 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__4;
x_364 = l_Lean_Macro_throwErrorAt___redArg(x_310, x_363, x_2, x_3);
lean_dec(x_310);
return x_364;
}
else
{
lean_object* x_365; lean_object* x_366; uint8_t x_367; 
x_365 = l_Lean_Syntax_getArg(x_310, x_32);
x_366 = l_Lean_Syntax_getArg(x_310, x_34);
x_367 = l_Lean_Syntax_isNone(x_366);
if (x_367 == 0)
{
uint8_t x_368; 
lean_inc(x_366);
x_368 = l_Lean_Syntax_matchesNull(x_366, x_34);
if (x_368 == 0)
{
lean_object* x_369; lean_object* x_370; 
lean_dec(x_366);
lean_dec(x_365);
lean_dec(x_361);
lean_dec(x_360);
lean_dec(x_200);
x_369 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__4;
x_370 = l_Lean_Macro_throwErrorAt___redArg(x_310, x_369, x_2, x_3);
lean_dec(x_310);
return x_370;
}
else
{
lean_object* x_371; lean_object* x_372; 
x_371 = l_Lean_Syntax_getArg(x_366, x_32);
lean_dec(x_366);
x_372 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_372, 0, x_371);
x_311 = x_360;
x_312 = x_365;
x_313 = x_361;
x_314 = x_372;
x_315 = x_2;
x_316 = x_3;
goto block_358;
}
}
else
{
lean_object* x_373; 
lean_dec(x_366);
x_373 = lean_box(0);
x_311 = x_360;
x_312 = x_365;
x_313 = x_361;
x_314 = x_373;
x_315 = x_2;
x_316 = x_3;
goto block_358;
}
}
}
block_381:
{
lean_object* x_376; 
x_376 = l_Lean_Syntax_getOptional_x3f(x_33);
lean_dec(x_33);
if (lean_obj_tag(x_376) == 0)
{
lean_object* x_377; 
x_377 = lean_box(0);
x_360 = x_375;
x_361 = x_377;
goto block_374;
}
else
{
uint8_t x_378; 
x_378 = !lean_is_exclusive(x_376);
if (x_378 == 0)
{
x_360 = x_375;
x_361 = x_376;
goto block_374;
}
else
{
lean_object* x_379; lean_object* x_380; 
x_379 = lean_ctor_get(x_376, 0);
lean_inc(x_379);
lean_dec(x_376);
x_380 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_380, 0, x_379);
x_360 = x_375;
x_361 = x_380;
goto block_374;
}
}
}
}
block_27:
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_20 = l_Array_append___redArg(x_15, x_19);
lean_dec_ref(x_19);
lean_inc(x_9);
lean_inc(x_14);
x_21 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_21, 0, x_14);
lean_ctor_set(x_21, 1, x_9);
lean_ctor_set(x_21, 2, x_20);
lean_inc(x_14);
x_22 = l_Lean_Syntax_node4(x_14, x_13, x_5, x_10, x_11, x_21);
lean_inc(x_14);
x_23 = l_Lean_Syntax_node4(x_14, x_4, x_17, x_6, x_12, x_22);
lean_inc(x_14);
x_24 = l_Lean_Syntax_node2(x_14, x_7, x_18, x_23);
x_25 = l_Lean_Syntax_node2(x_14, x_9, x_16, x_24);
x_26 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_26, 0, x_25);
lean_ctor_set(x_26, 1, x_8);
return x_26;
}
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_macroAttribute;
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("_private", 8, 8);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__1;
x_2 = lean_box(0);
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__2;
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__3;
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Targets", 7, 7);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__5;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__4;
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__6;
x_3 = l_Lean_Name_num___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__7;
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__8;
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("expandModuleFacetDecl", 21, 21);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__10;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__9;
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1() {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__0;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__3;
x_4 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__11;
x_5 = lean_alloc_closure((void*)(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl), 3, 0);
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___redArg(x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1();
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_mkPackageFacetDecl___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_12; lean_object* x_13; 
lean_inc_ref(x_4);
x_12 = lean_apply_1(x_1, x_4);
lean_inc_ref(x_9);
x_13 = l_Lake_ensureJob___redArg(x_2, x_12, x_5, x_6, x_7, x_8, x_9, x_10);
if (lean_obj_tag(x_13) == 0)
{
uint8_t x_14; 
x_14 = !lean_is_exclusive(x_13);
if (x_14 == 0)
{
lean_object* x_15; uint8_t x_16; 
x_15 = lean_ctor_get(x_13, 0);
x_16 = !lean_is_exclusive(x_15);
if (x_16 == 0)
{
lean_object* x_17; uint8_t x_18; 
x_17 = lean_ctor_get(x_15, 2);
lean_dec(x_17);
x_18 = !lean_is_exclusive(x_9);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_19 = lean_ctor_get(x_9, 3);
x_20 = lean_ctor_get(x_9, 2);
lean_dec(x_20);
x_21 = lean_ctor_get(x_9, 1);
lean_dec(x_21);
x_22 = lean_ctor_get(x_9, 0);
lean_dec(x_22);
x_23 = lean_st_ref_take(x_19);
x_24 = lean_ctor_get(x_4, 0);
x_25 = l_Lake_Package_keyword;
x_26 = l_Lean_Name_append(x_25, x_3);
lean_inc(x_24);
x_27 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_27, 0, x_24);
lean_ctor_set_tag(x_9, 1);
lean_ctor_set(x_9, 3, x_26);
lean_ctor_set(x_9, 2, x_4);
lean_ctor_set(x_9, 1, x_25);
lean_ctor_set(x_9, 0, x_27);
x_28 = l_Lake_BuildInfo_key(x_9);
x_29 = l_Lake_BuildKey_toSimpleString(x_28);
x_30 = 0;
lean_ctor_set(x_15, 2, x_29);
lean_ctor_set_uint8(x_15, sizeof(void*)*3, x_30);
lean_inc_ref(x_15);
x_31 = l_Lake_Job_toOpaque___redArg(x_15);
x_32 = lean_array_push(x_23, x_31);
x_33 = lean_st_ref_set(x_19, x_32);
lean_dec(x_19);
x_34 = l_Lake_Job_renew___redArg(x_15);
lean_ctor_set(x_13, 0, x_34);
return x_13;
}
else
{
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; 
x_35 = lean_ctor_get(x_9, 3);
lean_inc(x_35);
lean_dec(x_9);
x_36 = lean_st_ref_take(x_35);
x_37 = lean_ctor_get(x_4, 0);
x_38 = l_Lake_Package_keyword;
x_39 = l_Lean_Name_append(x_38, x_3);
lean_inc(x_37);
x_40 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_40, 0, x_37);
x_41 = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(x_41, 0, x_40);
lean_ctor_set(x_41, 1, x_38);
lean_ctor_set(x_41, 2, x_4);
lean_ctor_set(x_41, 3, x_39);
x_42 = l_Lake_BuildInfo_key(x_41);
x_43 = l_Lake_BuildKey_toSimpleString(x_42);
x_44 = 0;
lean_ctor_set(x_15, 2, x_43);
lean_ctor_set_uint8(x_15, sizeof(void*)*3, x_44);
lean_inc_ref(x_15);
x_45 = l_Lake_Job_toOpaque___redArg(x_15);
x_46 = lean_array_push(x_36, x_45);
x_47 = lean_st_ref_set(x_35, x_46);
lean_dec(x_35);
x_48 = l_Lake_Job_renew___redArg(x_15);
lean_ctor_set(x_13, 0, x_48);
return x_13;
}
}
else
{
lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; 
x_49 = lean_ctor_get(x_15, 0);
x_50 = lean_ctor_get(x_15, 1);
lean_inc(x_50);
lean_inc(x_49);
lean_dec(x_15);
x_51 = lean_ctor_get(x_9, 3);
lean_inc(x_51);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 x_52 = x_9;
} else {
 lean_dec_ref(x_9);
 x_52 = lean_box(0);
}
x_53 = lean_st_ref_take(x_51);
x_54 = lean_ctor_get(x_4, 0);
x_55 = l_Lake_Package_keyword;
x_56 = l_Lean_Name_append(x_55, x_3);
lean_inc(x_54);
x_57 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_57, 0, x_54);
if (lean_is_scalar(x_52)) {
 x_58 = lean_alloc_ctor(1, 4, 0);
} else {
 x_58 = x_52;
 lean_ctor_set_tag(x_58, 1);
}
lean_ctor_set(x_58, 0, x_57);
lean_ctor_set(x_58, 1, x_55);
lean_ctor_set(x_58, 2, x_4);
lean_ctor_set(x_58, 3, x_56);
x_59 = l_Lake_BuildInfo_key(x_58);
x_60 = l_Lake_BuildKey_toSimpleString(x_59);
x_61 = 0;
x_62 = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(x_62, 0, x_49);
lean_ctor_set(x_62, 1, x_50);
lean_ctor_set(x_62, 2, x_60);
lean_ctor_set_uint8(x_62, sizeof(void*)*3, x_61);
lean_inc_ref(x_62);
x_63 = l_Lake_Job_toOpaque___redArg(x_62);
x_64 = lean_array_push(x_53, x_63);
x_65 = lean_st_ref_set(x_51, x_64);
lean_dec(x_51);
x_66 = l_Lake_Job_renew___redArg(x_62);
lean_ctor_set(x_13, 0, x_66);
return x_13;
}
}
else
{
lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; 
x_67 = lean_ctor_get(x_13, 0);
x_68 = lean_ctor_get(x_13, 1);
lean_inc(x_68);
lean_inc(x_67);
lean_dec(x_13);
x_69 = lean_ctor_get(x_67, 0);
lean_inc_ref(x_69);
x_70 = lean_ctor_get(x_67, 1);
lean_inc(x_70);
if (lean_is_exclusive(x_67)) {
 lean_ctor_release(x_67, 0);
 lean_ctor_release(x_67, 1);
 lean_ctor_release(x_67, 2);
 x_71 = x_67;
} else {
 lean_dec_ref(x_67);
 x_71 = lean_box(0);
}
x_72 = lean_ctor_get(x_9, 3);
lean_inc(x_72);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 x_73 = x_9;
} else {
 lean_dec_ref(x_9);
 x_73 = lean_box(0);
}
x_74 = lean_st_ref_take(x_72);
x_75 = lean_ctor_get(x_4, 0);
x_76 = l_Lake_Package_keyword;
x_77 = l_Lean_Name_append(x_76, x_3);
lean_inc(x_75);
x_78 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_78, 0, x_75);
if (lean_is_scalar(x_73)) {
 x_79 = lean_alloc_ctor(1, 4, 0);
} else {
 x_79 = x_73;
 lean_ctor_set_tag(x_79, 1);
}
lean_ctor_set(x_79, 0, x_78);
lean_ctor_set(x_79, 1, x_76);
lean_ctor_set(x_79, 2, x_4);
lean_ctor_set(x_79, 3, x_77);
x_80 = l_Lake_BuildInfo_key(x_79);
x_81 = l_Lake_BuildKey_toSimpleString(x_80);
x_82 = 0;
if (lean_is_scalar(x_71)) {
 x_83 = lean_alloc_ctor(0, 3, 1);
} else {
 x_83 = x_71;
}
lean_ctor_set(x_83, 0, x_69);
lean_ctor_set(x_83, 1, x_70);
lean_ctor_set(x_83, 2, x_81);
lean_ctor_set_uint8(x_83, sizeof(void*)*3, x_82);
lean_inc_ref(x_83);
x_84 = l_Lake_Job_toOpaque___redArg(x_83);
x_85 = lean_array_push(x_74, x_84);
x_86 = lean_st_ref_set(x_72, x_85);
lean_dec(x_72);
x_87 = l_Lake_Job_renew___redArg(x_83);
x_88 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_88, 0, x_87);
lean_ctor_set(x_88, 1, x_68);
return x_88;
}
}
else
{
lean_dec_ref(x_9);
lean_dec_ref(x_4);
lean_dec(x_3);
return x_13;
}
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_mkPackageFacetDecl___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; 
x_12 = l_Lake_DSL_mkPackageFacetDecl___lam__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
return x_12;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_mkPackageFacetDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
lean_inc(x_2);
lean_inc(x_3);
x_7 = lean_alloc_closure((void*)(l_Lake_DSL_mkPackageFacetDecl___lam__0___boxed), 11, 3);
lean_closure_set(x_7, 0, x_6);
lean_closure_set(x_7, 1, x_3);
lean_closure_set(x_7, 2, x_2);
x_8 = l_Lake_Package_keyword;
x_9 = l_Lean_Name_append(x_8, x_2);
x_10 = 1;
x_11 = lean_alloc_closure((void*)(l_Lake_formatQuery___boxed), 4, 2);
lean_closure_set(x_11, 0, lean_box(0));
lean_closure_set(x_11, 1, x_4);
x_12 = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(x_12, 0, x_8);
lean_ctor_set(x_12, 1, x_7);
lean_ctor_set(x_12, 2, x_3);
lean_ctor_set(x_12, 3, x_11);
lean_ctor_set_uint8(x_12, sizeof(void*)*4, x_10);
lean_ctor_set_uint8(x_12, sizeof(void*)*4 + 1, x_10);
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_9);
lean_ctor_set(x_13, 1, x_12);
return x_13;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_mkPackageFacetDecl___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
lean_inc(x_1);
lean_inc(x_2);
x_5 = lean_alloc_closure((void*)(l_Lake_DSL_mkPackageFacetDecl___lam__0___boxed), 11, 3);
lean_closure_set(x_5, 0, x_4);
lean_closure_set(x_5, 1, x_2);
lean_closure_set(x_5, 2, x_1);
x_6 = l_Lake_Package_keyword;
x_7 = l_Lean_Name_append(x_6, x_1);
x_8 = 1;
x_9 = lean_alloc_closure((void*)(l_Lake_formatQuery___boxed), 4, 2);
lean_closure_set(x_9, 0, lean_box(0));
lean_closure_set(x_9, 1, x_3);
x_10 = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(x_10, 0, x_6);
lean_ctor_set(x_10, 1, x_5);
lean_ctor_set(x_10, 2, x_2);
lean_ctor_set(x_10, 3, x_9);
lean_ctor_set_uint8(x_10, sizeof(void*)*4, x_8);
lean_ctor_set_uint8(x_10, sizeof(void*)*4 + 1, x_8);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_7);
lean_ctor_set(x_11, 1, x_10);
return x_11;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___lam__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("_pkgFacet", 9, 9);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___lam__0___closed__0;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("packageFacetDecl", 16, 16);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__0;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ill-formed package facet declaration", 36, 36);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lake.DSL.mkPackageFacetDecl", 27, 27);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__3;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("mkPackageFacetDecl", 18, 18);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__5;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__6;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("packageDataDecl", 15, 15);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__8;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("package_data", 12, 12);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("«package_facet»", 17, 15);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__11;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__13() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("package_facet", 13, 13);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__13;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__15() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ill-formed package facet signature", 34, 34);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_28; uint8_t x_29; 
x_28 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__1;
lean_inc(x_1);
x_29 = l_Lean_Syntax_isOfKind(x_1, x_28);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; 
x_30 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__2;
x_31 = l_Lean_Macro_throwErrorAt___redArg(x_1, x_30, x_2, x_3);
lean_dec(x_1);
return x_31;
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; uint8_t x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_375; lean_object* x_382; 
x_32 = lean_unsigned_to_nat(0u);
x_33 = l_Lean_Syntax_getArg(x_1, x_32);
x_34 = lean_unsigned_to_nat(1u);
x_35 = l_Lean_Syntax_getArg(x_1, x_34);
x_36 = lean_unsigned_to_nat(2u);
x_200 = l_Lean_Syntax_getArg(x_1, x_36);
x_309 = lean_unsigned_to_nat(3u);
x_310 = l_Lean_Syntax_getArg(x_1, x_309);
lean_dec(x_1);
x_359 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__68;
x_382 = l_Lean_Syntax_getOptional_x3f(x_35);
lean_dec(x_35);
if (lean_obj_tag(x_382) == 0)
{
lean_object* x_383; 
x_383 = lean_box(0);
x_375 = x_383;
goto block_381;
}
else
{
uint8_t x_384; 
x_384 = !lean_is_exclusive(x_382);
if (x_384 == 0)
{
x_375 = x_382;
goto block_381;
}
else
{
lean_object* x_385; lean_object* x_386; 
x_385 = lean_ctor_get(x_382, 0);
lean_inc(x_385);
lean_dec(x_382);
x_386 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_386, 0, x_385);
x_375 = x_386;
goto block_381;
}
}
block_152:
{
lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; 
lean_inc_ref(x_50);
x_62 = l_Array_append___redArg(x_50, x_61);
lean_dec_ref(x_61);
lean_inc(x_40);
lean_inc(x_57);
x_63 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_63, 0, x_57);
lean_ctor_set(x_63, 1, x_40);
lean_ctor_set(x_63, 2, x_62);
x_64 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__5;
lean_inc_ref(x_39);
lean_inc_ref(x_41);
lean_inc_ref(x_44);
x_65 = l_Lean_Name_mkStr4(x_44, x_41, x_39, x_64);
x_66 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__6;
lean_inc(x_57);
x_67 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_67, 0, x_57);
lean_ctor_set(x_67, 1, x_66);
x_68 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__7;
x_69 = l_Lean_Syntax_SepArray_ofElems(x_68, x_49);
lean_dec_ref(x_49);
lean_inc_ref(x_50);
x_70 = l_Array_append___redArg(x_50, x_69);
lean_dec_ref(x_69);
lean_inc(x_40);
lean_inc(x_57);
x_71 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_71, 0, x_57);
lean_ctor_set(x_71, 1, x_40);
lean_ctor_set(x_71, 2, x_70);
x_72 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__8;
lean_inc(x_57);
x_73 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_73, 0, x_57);
lean_ctor_set(x_73, 1, x_72);
lean_inc(x_57);
x_74 = l_Lean_Syntax_node3(x_57, x_65, x_67, x_71, x_73);
lean_inc(x_40);
lean_inc(x_57);
x_75 = l_Lean_Syntax_node1(x_57, x_40, x_74);
lean_inc_n(x_55, 5);
lean_inc(x_57);
x_76 = l_Lean_Syntax_node7(x_57, x_52, x_63, x_75, x_55, x_55, x_55, x_55, x_55);
x_77 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__9;
lean_inc_ref(x_38);
lean_inc_ref(x_41);
lean_inc_ref(x_44);
x_78 = l_Lean_Name_mkStr4(x_44, x_41, x_38, x_77);
lean_inc(x_57);
x_79 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_79, 0, x_57);
lean_ctor_set(x_79, 1, x_77);
x_80 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__10;
lean_inc_ref(x_38);
lean_inc_ref(x_41);
lean_inc_ref(x_44);
x_81 = l_Lean_Name_mkStr4(x_44, x_41, x_38, x_80);
x_82 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__11;
x_83 = lean_box(2);
lean_inc(x_40);
x_84 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_84, 0, x_83);
lean_ctor_set(x_84, 1, x_40);
lean_ctor_set(x_84, 2, x_82);
x_85 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__12;
x_86 = lean_array_push(x_85, x_42);
x_87 = lean_array_push(x_86, x_84);
x_88 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_88, 0, x_83);
lean_ctor_set(x_88, 1, x_81);
lean_ctor_set(x_88, 2, x_87);
x_89 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__13;
lean_inc_ref(x_38);
lean_inc_ref(x_41);
lean_inc_ref(x_44);
x_90 = l_Lean_Name_mkStr4(x_44, x_41, x_38, x_89);
lean_inc_n(x_55, 2);
lean_inc(x_57);
x_91 = l_Lean_Syntax_node2(x_57, x_90, x_55, x_55);
x_92 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__14;
lean_inc(x_57);
x_93 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_93, 0, x_57);
lean_ctor_set(x_93, 1, x_92);
x_94 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__15;
lean_inc_ref(x_39);
lean_inc_ref(x_41);
lean_inc_ref(x_44);
x_95 = l_Lean_Name_mkStr4(x_44, x_41, x_39, x_94);
x_96 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__4;
x_97 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__6;
lean_inc(x_60);
lean_inc(x_56);
x_98 = l_Lean_addMacroScope(x_56, x_97, x_60);
x_99 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__7;
lean_inc(x_47);
x_100 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_100, 0, x_99);
lean_ctor_set(x_100, 1, x_47);
lean_inc(x_57);
x_101 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_101, 0, x_57);
lean_ctor_set(x_101, 1, x_96);
lean_ctor_set(x_101, 2, x_98);
lean_ctor_set(x_101, 3, x_100);
x_102 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__21;
lean_inc_ref(x_39);
lean_inc_ref(x_41);
lean_inc_ref(x_44);
x_103 = l_Lean_Name_mkStr4(x_44, x_41, x_39, x_102);
x_104 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__22;
lean_inc_ref(x_39);
lean_inc_ref(x_41);
lean_inc_ref(x_44);
x_105 = l_Lean_Name_mkStr4(x_44, x_41, x_39, x_104);
x_106 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__23;
lean_inc(x_57);
x_107 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_107, 0, x_57);
lean_ctor_set(x_107, 1, x_106);
x_108 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__25;
x_109 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__27;
x_110 = lean_box(0);
x_111 = l_Lean_addMacroScope(x_56, x_110, x_60);
x_112 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__29;
lean_inc_ref(x_38);
lean_inc_ref(x_41);
lean_inc_ref(x_44);
x_113 = l_Lean_Name_mkStr3(x_44, x_41, x_38);
x_114 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_114, 0, x_113);
x_115 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__30;
lean_inc_ref(x_44);
x_116 = l_Lean_Name_mkStr3(x_44, x_115, x_38);
x_117 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_117, 0, x_116);
lean_inc_ref(x_44);
x_118 = l_Lean_Name_mkStr2(x_44, x_115);
x_119 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_119, 0, x_118);
lean_inc_ref(x_41);
lean_inc_ref(x_44);
x_120 = l_Lean_Name_mkStr2(x_44, x_41);
x_121 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_121, 0, x_120);
lean_inc_ref(x_44);
x_122 = l_Lean_Name_mkStr1(x_44);
x_123 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_123, 0, x_122);
x_124 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_124, 0, x_123);
lean_ctor_set(x_124, 1, x_47);
x_125 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_125, 0, x_121);
lean_ctor_set(x_125, 1, x_124);
x_126 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_126, 0, x_119);
lean_ctor_set(x_126, 1, x_125);
x_127 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_127, 0, x_117);
lean_ctor_set(x_127, 1, x_126);
x_128 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_128, 0, x_114);
lean_ctor_set(x_128, 1, x_127);
x_129 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_129, 0, x_112);
lean_ctor_set(x_129, 1, x_128);
lean_inc(x_57);
x_130 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_130, 0, x_57);
lean_ctor_set(x_130, 1, x_109);
lean_ctor_set(x_130, 2, x_111);
lean_ctor_set(x_130, 3, x_129);
lean_inc(x_57);
x_131 = l_Lean_Syntax_node1(x_57, x_108, x_130);
lean_inc(x_57);
x_132 = l_Lean_Syntax_node2(x_57, x_105, x_107, x_131);
x_133 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__31;
lean_inc_ref(x_39);
lean_inc_ref(x_41);
lean_inc_ref(x_44);
x_134 = l_Lean_Name_mkStr4(x_44, x_41, x_39, x_133);
lean_inc(x_57);
x_135 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_135, 0, x_57);
lean_ctor_set(x_135, 1, x_133);
x_136 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__32;
x_137 = l_Lean_Name_mkStr4(x_44, x_41, x_39, x_136);
lean_inc(x_40);
lean_inc(x_57);
x_138 = l_Lean_Syntax_node1(x_57, x_40, x_46);
x_139 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__33;
lean_inc(x_57);
x_140 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_140, 0, x_57);
lean_ctor_set(x_140, 1, x_139);
lean_inc(x_55);
lean_inc(x_57);
x_141 = l_Lean_Syntax_node4(x_57, x_137, x_138, x_55, x_140, x_59);
lean_inc(x_57);
x_142 = l_Lean_Syntax_node2(x_57, x_134, x_135, x_141);
x_143 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__34;
lean_inc(x_57);
x_144 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_144, 0, x_57);
lean_ctor_set(x_144, 1, x_143);
lean_inc(x_57);
x_145 = l_Lean_Syntax_node3(x_57, x_103, x_132, x_142, x_144);
lean_inc(x_40);
lean_inc(x_57);
x_146 = l_Lean_Syntax_node3(x_57, x_40, x_37, x_45, x_145);
lean_inc(x_57);
x_147 = l_Lean_Syntax_node2(x_57, x_95, x_101, x_146);
lean_inc(x_55);
lean_inc(x_57);
x_148 = l_Lean_Syntax_node2(x_57, x_43, x_55, x_55);
if (lean_obj_tag(x_53) == 1)
{
lean_object* x_149; lean_object* x_150; 
x_149 = lean_ctor_get(x_53, 0);
lean_inc(x_149);
lean_dec_ref(x_53);
x_150 = l_Array_mkArray1___redArg(x_149);
x_4 = x_148;
x_5 = x_40;
x_6 = x_147;
x_7 = x_91;
x_8 = x_93;
x_9 = x_48;
x_10 = x_50;
x_11 = x_51;
x_12 = x_79;
x_13 = x_54;
x_14 = x_76;
x_15 = x_57;
x_16 = x_88;
x_17 = x_58;
x_18 = x_78;
x_19 = x_150;
goto block_27;
}
else
{
lean_object* x_151; 
lean_dec(x_53);
x_151 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__35;
x_4 = x_148;
x_5 = x_40;
x_6 = x_147;
x_7 = x_91;
x_8 = x_93;
x_9 = x_48;
x_10 = x_50;
x_11 = x_51;
x_12 = x_79;
x_13 = x_54;
x_14 = x_76;
x_15 = x_57;
x_16 = x_88;
x_17 = x_58;
x_18 = x_78;
x_19 = x_151;
goto block_27;
}
}
block_199:
{
lean_object* x_178; 
x_178 = l_Lake_DSL_expandOptSimpleBinder(x_162, x_157, x_168);
if (lean_obj_tag(x_178) == 0)
{
lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; 
x_179 = lean_ctor_get(x_178, 0);
lean_inc(x_179);
x_180 = lean_ctor_get(x_178, 1);
lean_inc(x_180);
lean_dec_ref(x_178);
x_181 = l_Lean_mkIdentFrom(x_164, x_177, x_173);
x_182 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__9;
x_183 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__10;
lean_inc(x_172);
x_184 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_184, 0, x_172);
lean_ctor_set(x_184, 1, x_183);
x_185 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__39;
lean_inc(x_172);
x_186 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_186, 0, x_172);
lean_ctor_set(x_186, 1, x_185);
lean_inc(x_153);
lean_inc(x_171);
lean_inc(x_172);
x_187 = l_Lean_Syntax_node5(x_172, x_182, x_171, x_184, x_164, x_186, x_153);
x_188 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__40;
lean_inc_ref(x_154);
lean_inc_ref(x_158);
lean_inc_ref(x_160);
x_189 = l_Lean_Name_mkStr4(x_160, x_158, x_154, x_188);
x_190 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__41;
lean_inc_ref(x_154);
lean_inc_ref(x_158);
lean_inc_ref(x_160);
x_191 = l_Lean_Name_mkStr4(x_160, x_158, x_154, x_190);
if (lean_obj_tag(x_167) == 1)
{
lean_object* x_192; lean_object* x_193; 
x_192 = lean_ctor_get(x_167, 0);
lean_inc(x_192);
lean_dec_ref(x_167);
x_193 = l_Array_mkArray1___redArg(x_192);
x_37 = x_153;
x_38 = x_154;
x_39 = x_155;
x_40 = x_156;
x_41 = x_158;
x_42 = x_181;
x_43 = x_159;
x_44 = x_160;
x_45 = x_161;
x_46 = x_179;
x_47 = x_163;
x_48 = x_180;
x_49 = x_165;
x_50 = x_166;
x_51 = x_187;
x_52 = x_191;
x_53 = x_169;
x_54 = x_189;
x_55 = x_171;
x_56 = x_170;
x_57 = x_172;
x_58 = x_176;
x_59 = x_175;
x_60 = x_174;
x_61 = x_193;
goto block_152;
}
else
{
lean_object* x_194; 
lean_dec(x_167);
x_194 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__35;
x_37 = x_153;
x_38 = x_154;
x_39 = x_155;
x_40 = x_156;
x_41 = x_158;
x_42 = x_181;
x_43 = x_159;
x_44 = x_160;
x_45 = x_161;
x_46 = x_179;
x_47 = x_163;
x_48 = x_180;
x_49 = x_165;
x_50 = x_166;
x_51 = x_187;
x_52 = x_191;
x_53 = x_169;
x_54 = x_189;
x_55 = x_171;
x_56 = x_170;
x_57 = x_172;
x_58 = x_176;
x_59 = x_175;
x_60 = x_174;
x_61 = x_194;
goto block_152;
}
}
else
{
uint8_t x_195; 
lean_dec(x_177);
lean_dec(x_176);
lean_dec(x_175);
lean_dec(x_174);
lean_dec(x_172);
lean_dec(x_171);
lean_dec(x_170);
lean_dec(x_169);
lean_dec(x_167);
lean_dec_ref(x_166);
lean_dec_ref(x_165);
lean_dec(x_164);
lean_dec(x_163);
lean_dec(x_161);
lean_dec_ref(x_160);
lean_dec(x_159);
lean_dec_ref(x_158);
lean_dec(x_156);
lean_dec_ref(x_155);
lean_dec_ref(x_154);
lean_dec(x_153);
x_195 = !lean_is_exclusive(x_178);
if (x_195 == 0)
{
return x_178;
}
else
{
lean_object* x_196; lean_object* x_197; lean_object* x_198; 
x_196 = lean_ctor_get(x_178, 0);
x_197 = lean_ctor_get(x_178, 1);
lean_inc(x_197);
lean_inc(x_196);
lean_dec(x_178);
x_198 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_198, 0, x_196);
lean_ctor_set(x_198, 1, x_197);
return x_198;
}
}
}
block_308:
{
uint8_t x_216; 
x_216 = !lean_is_exclusive(x_214);
if (x_216 == 0)
{
lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; uint8_t x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; uint8_t x_248; 
x_217 = lean_ctor_get(x_214, 1);
x_218 = lean_ctor_get(x_214, 2);
x_219 = lean_ctor_get(x_214, 5);
x_220 = l_Lean_replaceRef(x_200, x_219);
lean_dec(x_219);
lean_dec(x_200);
lean_inc(x_220);
lean_inc(x_218);
lean_inc(x_217);
lean_ctor_set(x_214, 5, x_220);
x_221 = 0;
x_222 = l_Lean_SourceInfo_fromRef(x_220, x_221);
lean_dec(x_220);
x_223 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__42;
lean_inc_ref(x_204);
lean_inc_ref(x_205);
lean_inc_ref(x_208);
x_224 = l_Lean_Name_mkStr4(x_208, x_205, x_204, x_223);
x_225 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__43;
lean_inc_ref(x_204);
lean_inc_ref(x_205);
lean_inc_ref(x_208);
x_226 = l_Lean_Name_mkStr4(x_208, x_205, x_204, x_225);
x_227 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__45;
x_228 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__46;
lean_inc(x_222);
x_229 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_229, 0, x_222);
lean_ctor_set(x_229, 1, x_227);
lean_ctor_set(x_229, 2, x_228);
lean_inc_ref(x_229);
lean_inc(x_222);
x_230 = l_Lean_Syntax_node1(x_222, x_226, x_229);
x_231 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__47;
x_232 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__48;
lean_inc_ref(x_205);
lean_inc_ref(x_208);
x_233 = l_Lean_Name_mkStr4(x_208, x_205, x_231, x_232);
x_234 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__12;
x_235 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__14;
lean_inc(x_218);
lean_inc(x_217);
x_236 = l_Lean_addMacroScope(x_217, x_235, x_218);
x_237 = lean_box(0);
lean_inc(x_222);
x_238 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_238, 0, x_222);
lean_ctor_set(x_238, 1, x_234);
lean_ctor_set(x_238, 2, x_236);
lean_ctor_set(x_238, 3, x_237);
lean_inc_ref(x_229);
lean_inc(x_222);
x_239 = l_Lean_Syntax_node2(x_222, x_233, x_238, x_229);
lean_inc(x_222);
x_240 = l_Lean_Syntax_node2(x_222, x_224, x_230, x_239);
x_241 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__53;
x_242 = lean_array_push(x_241, x_240);
x_243 = l_Lake_DSL_expandAttrs(x_210);
x_244 = l_Array_append___redArg(x_242, x_243);
lean_dec_ref(x_243);
x_245 = l_Lake_DSL_expandIdentOrStrAsIdent(x_206);
x_246 = l_Lean_TSyntax_getId(x_245);
lean_inc(x_246);
lean_inc(x_245);
x_247 = l_Lake_Name_quoteFrom(x_245, x_246, x_221);
x_248 = l_Lean_Name_hasMacroScopes(x_246);
if (x_248 == 0)
{
lean_object* x_249; 
x_249 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___lam__0(x_246);
x_153 = x_203;
x_154 = x_202;
x_155 = x_204;
x_156 = x_227;
x_157 = x_214;
x_158 = x_205;
x_159 = x_207;
x_160 = x_208;
x_161 = x_247;
x_162 = x_209;
x_163 = x_237;
x_164 = x_245;
x_165 = x_244;
x_166 = x_228;
x_167 = x_201;
x_168 = x_215;
x_169 = x_213;
x_170 = x_217;
x_171 = x_229;
x_172 = x_222;
x_173 = x_221;
x_174 = x_218;
x_175 = x_212;
x_176 = x_211;
x_177 = x_249;
goto block_199;
}
else
{
lean_object* x_250; uint8_t x_251; 
x_250 = l_Lean_extractMacroScopes(x_246);
x_251 = !lean_is_exclusive(x_250);
if (x_251 == 0)
{
lean_object* x_252; lean_object* x_253; lean_object* x_254; 
x_252 = lean_ctor_get(x_250, 0);
x_253 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___lam__0(x_252);
lean_ctor_set(x_250, 0, x_253);
x_254 = l_Lean_MacroScopesView_review(x_250);
x_153 = x_203;
x_154 = x_202;
x_155 = x_204;
x_156 = x_227;
x_157 = x_214;
x_158 = x_205;
x_159 = x_207;
x_160 = x_208;
x_161 = x_247;
x_162 = x_209;
x_163 = x_237;
x_164 = x_245;
x_165 = x_244;
x_166 = x_228;
x_167 = x_201;
x_168 = x_215;
x_169 = x_213;
x_170 = x_217;
x_171 = x_229;
x_172 = x_222;
x_173 = x_221;
x_174 = x_218;
x_175 = x_212;
x_176 = x_211;
x_177 = x_254;
goto block_199;
}
else
{
lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; 
x_255 = lean_ctor_get(x_250, 0);
x_256 = lean_ctor_get(x_250, 1);
x_257 = lean_ctor_get(x_250, 2);
x_258 = lean_ctor_get(x_250, 3);
lean_inc(x_258);
lean_inc(x_257);
lean_inc(x_256);
lean_inc(x_255);
lean_dec(x_250);
x_259 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___lam__0(x_255);
x_260 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_260, 0, x_259);
lean_ctor_set(x_260, 1, x_256);
lean_ctor_set(x_260, 2, x_257);
lean_ctor_set(x_260, 3, x_258);
x_261 = l_Lean_MacroScopesView_review(x_260);
x_153 = x_203;
x_154 = x_202;
x_155 = x_204;
x_156 = x_227;
x_157 = x_214;
x_158 = x_205;
x_159 = x_207;
x_160 = x_208;
x_161 = x_247;
x_162 = x_209;
x_163 = x_237;
x_164 = x_245;
x_165 = x_244;
x_166 = x_228;
x_167 = x_201;
x_168 = x_215;
x_169 = x_213;
x_170 = x_217;
x_171 = x_229;
x_172 = x_222;
x_173 = x_221;
x_174 = x_218;
x_175 = x_212;
x_176 = x_211;
x_177 = x_261;
goto block_199;
}
}
}
else
{
lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; uint8_t x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; uint8_t x_297; 
x_262 = lean_ctor_get(x_214, 0);
x_263 = lean_ctor_get(x_214, 1);
x_264 = lean_ctor_get(x_214, 2);
x_265 = lean_ctor_get(x_214, 3);
x_266 = lean_ctor_get(x_214, 4);
x_267 = lean_ctor_get(x_214, 5);
lean_inc(x_267);
lean_inc(x_266);
lean_inc(x_265);
lean_inc(x_264);
lean_inc(x_263);
lean_inc(x_262);
lean_dec(x_214);
x_268 = l_Lean_replaceRef(x_200, x_267);
lean_dec(x_267);
lean_dec(x_200);
lean_inc(x_268);
lean_inc(x_264);
lean_inc(x_263);
x_269 = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(x_269, 0, x_262);
lean_ctor_set(x_269, 1, x_263);
lean_ctor_set(x_269, 2, x_264);
lean_ctor_set(x_269, 3, x_265);
lean_ctor_set(x_269, 4, x_266);
lean_ctor_set(x_269, 5, x_268);
x_270 = 0;
x_271 = l_Lean_SourceInfo_fromRef(x_268, x_270);
lean_dec(x_268);
x_272 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__42;
lean_inc_ref(x_204);
lean_inc_ref(x_205);
lean_inc_ref(x_208);
x_273 = l_Lean_Name_mkStr4(x_208, x_205, x_204, x_272);
x_274 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__43;
lean_inc_ref(x_204);
lean_inc_ref(x_205);
lean_inc_ref(x_208);
x_275 = l_Lean_Name_mkStr4(x_208, x_205, x_204, x_274);
x_276 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__45;
x_277 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__46;
lean_inc(x_271);
x_278 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_278, 0, x_271);
lean_ctor_set(x_278, 1, x_276);
lean_ctor_set(x_278, 2, x_277);
lean_inc_ref(x_278);
lean_inc(x_271);
x_279 = l_Lean_Syntax_node1(x_271, x_275, x_278);
x_280 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__47;
x_281 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__48;
lean_inc_ref(x_205);
lean_inc_ref(x_208);
x_282 = l_Lean_Name_mkStr4(x_208, x_205, x_280, x_281);
x_283 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__12;
x_284 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__14;
lean_inc(x_264);
lean_inc(x_263);
x_285 = l_Lean_addMacroScope(x_263, x_284, x_264);
x_286 = lean_box(0);
lean_inc(x_271);
x_287 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_287, 0, x_271);
lean_ctor_set(x_287, 1, x_283);
lean_ctor_set(x_287, 2, x_285);
lean_ctor_set(x_287, 3, x_286);
lean_inc_ref(x_278);
lean_inc(x_271);
x_288 = l_Lean_Syntax_node2(x_271, x_282, x_287, x_278);
lean_inc(x_271);
x_289 = l_Lean_Syntax_node2(x_271, x_273, x_279, x_288);
x_290 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__53;
x_291 = lean_array_push(x_290, x_289);
x_292 = l_Lake_DSL_expandAttrs(x_210);
x_293 = l_Array_append___redArg(x_291, x_292);
lean_dec_ref(x_292);
x_294 = l_Lake_DSL_expandIdentOrStrAsIdent(x_206);
x_295 = l_Lean_TSyntax_getId(x_294);
lean_inc(x_295);
lean_inc(x_294);
x_296 = l_Lake_Name_quoteFrom(x_294, x_295, x_270);
x_297 = l_Lean_Name_hasMacroScopes(x_295);
if (x_297 == 0)
{
lean_object* x_298; 
x_298 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___lam__0(x_295);
x_153 = x_203;
x_154 = x_202;
x_155 = x_204;
x_156 = x_276;
x_157 = x_269;
x_158 = x_205;
x_159 = x_207;
x_160 = x_208;
x_161 = x_296;
x_162 = x_209;
x_163 = x_286;
x_164 = x_294;
x_165 = x_293;
x_166 = x_277;
x_167 = x_201;
x_168 = x_215;
x_169 = x_213;
x_170 = x_263;
x_171 = x_278;
x_172 = x_271;
x_173 = x_270;
x_174 = x_264;
x_175 = x_212;
x_176 = x_211;
x_177 = x_298;
goto block_199;
}
else
{
lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; 
x_299 = l_Lean_extractMacroScopes(x_295);
x_300 = lean_ctor_get(x_299, 0);
lean_inc(x_300);
x_301 = lean_ctor_get(x_299, 1);
lean_inc(x_301);
x_302 = lean_ctor_get(x_299, 2);
lean_inc(x_302);
x_303 = lean_ctor_get(x_299, 3);
lean_inc(x_303);
if (lean_is_exclusive(x_299)) {
 lean_ctor_release(x_299, 0);
 lean_ctor_release(x_299, 1);
 lean_ctor_release(x_299, 2);
 lean_ctor_release(x_299, 3);
 x_304 = x_299;
} else {
 lean_dec_ref(x_299);
 x_304 = lean_box(0);
}
x_305 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___lam__0(x_300);
if (lean_is_scalar(x_304)) {
 x_306 = lean_alloc_ctor(0, 4, 0);
} else {
 x_306 = x_304;
}
lean_ctor_set(x_306, 0, x_305);
lean_ctor_set(x_306, 1, x_301);
lean_ctor_set(x_306, 2, x_302);
lean_ctor_set(x_306, 3, x_303);
x_307 = l_Lean_MacroScopesView_review(x_306);
x_153 = x_203;
x_154 = x_202;
x_155 = x_204;
x_156 = x_276;
x_157 = x_269;
x_158 = x_205;
x_159 = x_207;
x_160 = x_208;
x_161 = x_296;
x_162 = x_209;
x_163 = x_286;
x_164 = x_294;
x_165 = x_293;
x_166 = x_277;
x_167 = x_201;
x_168 = x_215;
x_169 = x_213;
x_170 = x_263;
x_171 = x_278;
x_172 = x_271;
x_173 = x_270;
x_174 = x_264;
x_175 = x_212;
x_176 = x_211;
x_177 = x_307;
goto block_199;
}
}
}
block_358:
{
lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; uint8_t x_322; 
x_317 = l_Lean_Syntax_getArg(x_310, x_36);
x_318 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54;
x_319 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55;
x_320 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56;
x_321 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__58;
lean_inc(x_317);
x_322 = l_Lean_Syntax_isOfKind(x_317, x_321);
if (x_322 == 0)
{
lean_object* x_323; lean_object* x_324; 
lean_dec(x_317);
lean_dec(x_314);
lean_dec(x_313);
lean_dec(x_312);
lean_dec(x_311);
lean_dec(x_200);
x_323 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__15;
x_324 = l_Lean_Macro_throwErrorAt___redArg(x_310, x_323, x_315, x_316);
lean_dec(x_310);
return x_324;
}
else
{
lean_object* x_325; lean_object* x_326; lean_object* x_327; uint8_t x_328; 
x_325 = l_Lean_Syntax_getArg(x_310, x_309);
x_326 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__59;
x_327 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__61;
lean_inc(x_325);
x_328 = l_Lean_Syntax_isOfKind(x_325, x_327);
if (x_328 == 0)
{
lean_object* x_329; lean_object* x_330; 
lean_dec(x_325);
lean_dec(x_317);
lean_dec(x_314);
lean_dec(x_313);
lean_dec(x_312);
lean_dec(x_311);
lean_dec(x_200);
x_329 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__15;
x_330 = l_Lean_Macro_throwErrorAt___redArg(x_310, x_329, x_315, x_316);
lean_dec(x_310);
return x_330;
}
else
{
lean_object* x_331; lean_object* x_332; uint8_t x_333; 
x_331 = l_Lean_Syntax_getArg(x_325, x_36);
x_332 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__64;
lean_inc(x_331);
x_333 = l_Lean_Syntax_isOfKind(x_331, x_332);
if (x_333 == 0)
{
lean_object* x_334; lean_object* x_335; 
lean_dec(x_331);
lean_dec(x_325);
lean_dec(x_317);
lean_dec(x_314);
lean_dec(x_313);
lean_dec(x_312);
lean_dec(x_311);
lean_dec(x_200);
x_334 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__15;
x_335 = l_Lean_Macro_throwErrorAt___redArg(x_310, x_334, x_315, x_316);
lean_dec(x_310);
return x_335;
}
else
{
lean_object* x_336; uint8_t x_337; 
x_336 = l_Lean_Syntax_getArg(x_331, x_32);
x_337 = l_Lean_Syntax_matchesNull(x_336, x_32);
if (x_337 == 0)
{
lean_object* x_338; lean_object* x_339; 
lean_dec(x_331);
lean_dec(x_325);
lean_dec(x_317);
lean_dec(x_314);
lean_dec(x_313);
lean_dec(x_312);
lean_dec(x_311);
lean_dec(x_200);
x_338 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__15;
x_339 = l_Lean_Macro_throwErrorAt___redArg(x_310, x_338, x_315, x_316);
lean_dec(x_310);
return x_339;
}
else
{
lean_object* x_340; uint8_t x_341; 
x_340 = l_Lean_Syntax_getArg(x_331, x_34);
lean_dec(x_331);
x_341 = l_Lean_Syntax_matchesNull(x_340, x_32);
if (x_341 == 0)
{
lean_object* x_342; lean_object* x_343; 
lean_dec(x_325);
lean_dec(x_317);
lean_dec(x_314);
lean_dec(x_313);
lean_dec(x_312);
lean_dec(x_311);
lean_dec(x_200);
x_342 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__15;
x_343 = l_Lean_Macro_throwErrorAt___redArg(x_310, x_342, x_315, x_316);
lean_dec(x_310);
return x_343;
}
else
{
lean_object* x_344; lean_object* x_345; lean_object* x_346; uint8_t x_347; 
x_344 = l_Lean_Syntax_getArg(x_317, x_34);
lean_dec(x_317);
x_345 = l_Lean_Syntax_getArg(x_325, x_34);
x_346 = l_Lean_Syntax_getArg(x_325, x_309);
lean_dec(x_325);
x_347 = l_Lean_Syntax_isNone(x_346);
if (x_347 == 0)
{
uint8_t x_348; 
lean_inc(x_346);
x_348 = l_Lean_Syntax_matchesNull(x_346, x_34);
if (x_348 == 0)
{
lean_object* x_349; lean_object* x_350; 
lean_dec(x_346);
lean_dec(x_345);
lean_dec(x_344);
lean_dec(x_314);
lean_dec(x_313);
lean_dec(x_312);
lean_dec(x_311);
lean_dec(x_200);
x_349 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__15;
x_350 = l_Lean_Macro_throwErrorAt___redArg(x_310, x_349, x_315, x_316);
lean_dec(x_310);
return x_350;
}
else
{
lean_object* x_351; lean_object* x_352; uint8_t x_353; 
x_351 = l_Lean_Syntax_getArg(x_346, x_32);
lean_dec(x_346);
x_352 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__66;
lean_inc(x_351);
x_353 = l_Lean_Syntax_isOfKind(x_351, x_352);
if (x_353 == 0)
{
lean_object* x_354; lean_object* x_355; 
lean_dec(x_351);
lean_dec(x_345);
lean_dec(x_344);
lean_dec(x_314);
lean_dec(x_313);
lean_dec(x_312);
lean_dec(x_311);
lean_dec(x_200);
x_354 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__15;
x_355 = l_Lean_Macro_throwErrorAt___redArg(x_310, x_354, x_315, x_316);
lean_dec(x_310);
return x_355;
}
else
{
lean_object* x_356; 
lean_dec(x_310);
x_356 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_356, 0, x_351);
x_201 = x_311;
x_202 = x_326;
x_203 = x_344;
x_204 = x_320;
x_205 = x_319;
x_206 = x_312;
x_207 = x_332;
x_208 = x_318;
x_209 = x_314;
x_210 = x_313;
x_211 = x_327;
x_212 = x_345;
x_213 = x_356;
x_214 = x_315;
x_215 = x_316;
goto block_308;
}
}
}
else
{
lean_object* x_357; 
lean_dec(x_346);
lean_dec(x_310);
x_357 = lean_box(0);
x_201 = x_311;
x_202 = x_326;
x_203 = x_344;
x_204 = x_320;
x_205 = x_319;
x_206 = x_312;
x_207 = x_332;
x_208 = x_318;
x_209 = x_314;
x_210 = x_313;
x_211 = x_327;
x_212 = x_345;
x_213 = x_357;
x_214 = x_315;
x_215 = x_316;
goto block_308;
}
}
}
}
}
}
}
block_374:
{
uint8_t x_362; 
lean_inc(x_310);
x_362 = l_Lean_Syntax_isOfKind(x_310, x_359);
if (x_362 == 0)
{
lean_object* x_363; lean_object* x_364; 
lean_dec(x_361);
lean_dec(x_360);
lean_dec(x_200);
x_363 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__15;
x_364 = l_Lean_Macro_throwErrorAt___redArg(x_310, x_363, x_2, x_3);
lean_dec(x_310);
return x_364;
}
else
{
lean_object* x_365; lean_object* x_366; uint8_t x_367; 
x_365 = l_Lean_Syntax_getArg(x_310, x_32);
x_366 = l_Lean_Syntax_getArg(x_310, x_34);
x_367 = l_Lean_Syntax_isNone(x_366);
if (x_367 == 0)
{
uint8_t x_368; 
lean_inc(x_366);
x_368 = l_Lean_Syntax_matchesNull(x_366, x_34);
if (x_368 == 0)
{
lean_object* x_369; lean_object* x_370; 
lean_dec(x_366);
lean_dec(x_365);
lean_dec(x_361);
lean_dec(x_360);
lean_dec(x_200);
x_369 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__15;
x_370 = l_Lean_Macro_throwErrorAt___redArg(x_310, x_369, x_2, x_3);
lean_dec(x_310);
return x_370;
}
else
{
lean_object* x_371; lean_object* x_372; 
x_371 = l_Lean_Syntax_getArg(x_366, x_32);
lean_dec(x_366);
x_372 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_372, 0, x_371);
x_311 = x_361;
x_312 = x_365;
x_313 = x_360;
x_314 = x_372;
x_315 = x_2;
x_316 = x_3;
goto block_358;
}
}
else
{
lean_object* x_373; 
lean_dec(x_366);
x_373 = lean_box(0);
x_311 = x_361;
x_312 = x_365;
x_313 = x_360;
x_314 = x_373;
x_315 = x_2;
x_316 = x_3;
goto block_358;
}
}
}
block_381:
{
lean_object* x_376; 
x_376 = l_Lean_Syntax_getOptional_x3f(x_33);
lean_dec(x_33);
if (lean_obj_tag(x_376) == 0)
{
lean_object* x_377; 
x_377 = lean_box(0);
x_360 = x_375;
x_361 = x_377;
goto block_374;
}
else
{
uint8_t x_378; 
x_378 = !lean_is_exclusive(x_376);
if (x_378 == 0)
{
x_360 = x_375;
x_361 = x_376;
goto block_374;
}
else
{
lean_object* x_379; lean_object* x_380; 
x_379 = lean_ctor_get(x_376, 0);
lean_inc(x_379);
lean_dec(x_376);
x_380 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_380, 0, x_379);
x_360 = x_375;
x_361 = x_380;
goto block_374;
}
}
}
}
block_27:
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_20 = l_Array_append___redArg(x_10, x_19);
lean_dec_ref(x_19);
lean_inc(x_5);
lean_inc(x_15);
x_21 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_21, 0, x_15);
lean_ctor_set(x_21, 1, x_5);
lean_ctor_set(x_21, 2, x_20);
lean_inc(x_15);
x_22 = l_Lean_Syntax_node4(x_15, x_17, x_8, x_6, x_4, x_21);
lean_inc(x_15);
x_23 = l_Lean_Syntax_node4(x_15, x_18, x_12, x_16, x_7, x_22);
lean_inc(x_15);
x_24 = l_Lean_Syntax_node2(x_15, x_13, x_14, x_23);
x_25 = l_Lean_Syntax_node2(x_15, x_5, x_11, x_24);
x_26 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_26, 0, x_25);
lean_ctor_set(x_26, 1, x_9);
return x_26;
}
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl__1___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("expandPackageFacetDecl", 22, 22);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl__1___closed__0;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__9;
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl__1() {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__0;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__1;
x_4 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl__1___closed__1;
x_5 = lean_alloc_closure((void*)(l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl), 3, 0);
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___redArg(x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl__1___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl__1();
return x_2;
}
}
static lean_object* _init_l_Lake_DSL_mkLibraryFacetDecl___lam__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("lean_lib", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_mkLibraryFacetDecl___lam__0___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_DSL_mkLibraryFacetDecl___lam__0___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_mkLibraryFacetDecl___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_12; lean_object* x_13; 
lean_inc_ref(x_4);
x_12 = lean_apply_1(x_1, x_4);
lean_inc_ref(x_9);
x_13 = l_Lake_ensureJob___redArg(x_2, x_12, x_5, x_6, x_7, x_8, x_9, x_10);
if (lean_obj_tag(x_13) == 0)
{
uint8_t x_14; 
x_14 = !lean_is_exclusive(x_13);
if (x_14 == 0)
{
lean_object* x_15; uint8_t x_16; 
x_15 = lean_ctor_get(x_13, 0);
x_16 = !lean_is_exclusive(x_15);
if (x_16 == 0)
{
lean_object* x_17; uint8_t x_18; 
x_17 = lean_ctor_get(x_15, 2);
lean_dec(x_17);
x_18 = !lean_is_exclusive(x_9);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; 
x_19 = lean_ctor_get(x_9, 3);
x_20 = lean_ctor_get(x_9, 2);
lean_dec(x_20);
x_21 = lean_ctor_get(x_9, 1);
lean_dec(x_21);
x_22 = lean_ctor_get(x_9, 0);
lean_dec(x_22);
x_23 = lean_st_ref_take(x_19);
x_24 = lean_ctor_get(x_4, 0);
x_25 = lean_ctor_get(x_4, 1);
x_26 = lean_ctor_get(x_24, 0);
x_27 = l_Lake_DSL_mkLibraryFacetDecl___lam__0___closed__1;
x_28 = l_Lean_Name_append(x_27, x_3);
lean_inc(x_25);
lean_inc(x_26);
x_29 = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(x_29, 0, x_26);
lean_ctor_set(x_29, 1, x_25);
lean_ctor_set_tag(x_9, 1);
lean_ctor_set(x_9, 3, x_28);
lean_ctor_set(x_9, 2, x_4);
lean_ctor_set(x_9, 1, x_27);
lean_ctor_set(x_9, 0, x_29);
x_30 = l_Lake_BuildInfo_key(x_9);
x_31 = l_Lake_BuildKey_toSimpleString(x_30);
x_32 = 0;
lean_ctor_set(x_15, 2, x_31);
lean_ctor_set_uint8(x_15, sizeof(void*)*3, x_32);
lean_inc_ref(x_15);
x_33 = l_Lake_Job_toOpaque___redArg(x_15);
x_34 = lean_array_push(x_23, x_33);
x_35 = lean_st_ref_set(x_19, x_34);
lean_dec(x_19);
x_36 = l_Lake_Job_renew___redArg(x_15);
lean_ctor_set(x_13, 0, x_36);
return x_13;
}
else
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; 
x_37 = lean_ctor_get(x_9, 3);
lean_inc(x_37);
lean_dec(x_9);
x_38 = lean_st_ref_take(x_37);
x_39 = lean_ctor_get(x_4, 0);
x_40 = lean_ctor_get(x_4, 1);
x_41 = lean_ctor_get(x_39, 0);
x_42 = l_Lake_DSL_mkLibraryFacetDecl___lam__0___closed__1;
x_43 = l_Lean_Name_append(x_42, x_3);
lean_inc(x_40);
lean_inc(x_41);
x_44 = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(x_44, 0, x_41);
lean_ctor_set(x_44, 1, x_40);
x_45 = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(x_45, 0, x_44);
lean_ctor_set(x_45, 1, x_42);
lean_ctor_set(x_45, 2, x_4);
lean_ctor_set(x_45, 3, x_43);
x_46 = l_Lake_BuildInfo_key(x_45);
x_47 = l_Lake_BuildKey_toSimpleString(x_46);
x_48 = 0;
lean_ctor_set(x_15, 2, x_47);
lean_ctor_set_uint8(x_15, sizeof(void*)*3, x_48);
lean_inc_ref(x_15);
x_49 = l_Lake_Job_toOpaque___redArg(x_15);
x_50 = lean_array_push(x_38, x_49);
x_51 = lean_st_ref_set(x_37, x_50);
lean_dec(x_37);
x_52 = l_Lake_Job_renew___redArg(x_15);
lean_ctor_set(x_13, 0, x_52);
return x_13;
}
}
else
{
lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; 
x_53 = lean_ctor_get(x_15, 0);
x_54 = lean_ctor_get(x_15, 1);
lean_inc(x_54);
lean_inc(x_53);
lean_dec(x_15);
x_55 = lean_ctor_get(x_9, 3);
lean_inc(x_55);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 x_56 = x_9;
} else {
 lean_dec_ref(x_9);
 x_56 = lean_box(0);
}
x_57 = lean_st_ref_take(x_55);
x_58 = lean_ctor_get(x_4, 0);
x_59 = lean_ctor_get(x_4, 1);
x_60 = lean_ctor_get(x_58, 0);
x_61 = l_Lake_DSL_mkLibraryFacetDecl___lam__0___closed__1;
x_62 = l_Lean_Name_append(x_61, x_3);
lean_inc(x_59);
lean_inc(x_60);
x_63 = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(x_63, 0, x_60);
lean_ctor_set(x_63, 1, x_59);
if (lean_is_scalar(x_56)) {
 x_64 = lean_alloc_ctor(1, 4, 0);
} else {
 x_64 = x_56;
 lean_ctor_set_tag(x_64, 1);
}
lean_ctor_set(x_64, 0, x_63);
lean_ctor_set(x_64, 1, x_61);
lean_ctor_set(x_64, 2, x_4);
lean_ctor_set(x_64, 3, x_62);
x_65 = l_Lake_BuildInfo_key(x_64);
x_66 = l_Lake_BuildKey_toSimpleString(x_65);
x_67 = 0;
x_68 = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(x_68, 0, x_53);
lean_ctor_set(x_68, 1, x_54);
lean_ctor_set(x_68, 2, x_66);
lean_ctor_set_uint8(x_68, sizeof(void*)*3, x_67);
lean_inc_ref(x_68);
x_69 = l_Lake_Job_toOpaque___redArg(x_68);
x_70 = lean_array_push(x_57, x_69);
x_71 = lean_st_ref_set(x_55, x_70);
lean_dec(x_55);
x_72 = l_Lake_Job_renew___redArg(x_68);
lean_ctor_set(x_13, 0, x_72);
return x_13;
}
}
else
{
lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; 
x_73 = lean_ctor_get(x_13, 0);
x_74 = lean_ctor_get(x_13, 1);
lean_inc(x_74);
lean_inc(x_73);
lean_dec(x_13);
x_75 = lean_ctor_get(x_73, 0);
lean_inc_ref(x_75);
x_76 = lean_ctor_get(x_73, 1);
lean_inc(x_76);
if (lean_is_exclusive(x_73)) {
 lean_ctor_release(x_73, 0);
 lean_ctor_release(x_73, 1);
 lean_ctor_release(x_73, 2);
 x_77 = x_73;
} else {
 lean_dec_ref(x_73);
 x_77 = lean_box(0);
}
x_78 = lean_ctor_get(x_9, 3);
lean_inc(x_78);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 x_79 = x_9;
} else {
 lean_dec_ref(x_9);
 x_79 = lean_box(0);
}
x_80 = lean_st_ref_take(x_78);
x_81 = lean_ctor_get(x_4, 0);
x_82 = lean_ctor_get(x_4, 1);
x_83 = lean_ctor_get(x_81, 0);
x_84 = l_Lake_DSL_mkLibraryFacetDecl___lam__0___closed__1;
x_85 = l_Lean_Name_append(x_84, x_3);
lean_inc(x_82);
lean_inc(x_83);
x_86 = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(x_86, 0, x_83);
lean_ctor_set(x_86, 1, x_82);
if (lean_is_scalar(x_79)) {
 x_87 = lean_alloc_ctor(1, 4, 0);
} else {
 x_87 = x_79;
 lean_ctor_set_tag(x_87, 1);
}
lean_ctor_set(x_87, 0, x_86);
lean_ctor_set(x_87, 1, x_84);
lean_ctor_set(x_87, 2, x_4);
lean_ctor_set(x_87, 3, x_85);
x_88 = l_Lake_BuildInfo_key(x_87);
x_89 = l_Lake_BuildKey_toSimpleString(x_88);
x_90 = 0;
if (lean_is_scalar(x_77)) {
 x_91 = lean_alloc_ctor(0, 3, 1);
} else {
 x_91 = x_77;
}
lean_ctor_set(x_91, 0, x_75);
lean_ctor_set(x_91, 1, x_76);
lean_ctor_set(x_91, 2, x_89);
lean_ctor_set_uint8(x_91, sizeof(void*)*3, x_90);
lean_inc_ref(x_91);
x_92 = l_Lake_Job_toOpaque___redArg(x_91);
x_93 = lean_array_push(x_80, x_92);
x_94 = lean_st_ref_set(x_78, x_93);
lean_dec(x_78);
x_95 = l_Lake_Job_renew___redArg(x_91);
x_96 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_96, 0, x_95);
lean_ctor_set(x_96, 1, x_74);
return x_96;
}
}
else
{
lean_dec_ref(x_9);
lean_dec_ref(x_4);
lean_dec(x_3);
return x_13;
}
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_mkLibraryFacetDecl___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; 
x_12 = l_Lake_DSL_mkLibraryFacetDecl___lam__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
return x_12;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_mkLibraryFacetDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
lean_inc(x_2);
lean_inc(x_3);
x_7 = lean_alloc_closure((void*)(l_Lake_DSL_mkLibraryFacetDecl___lam__0___boxed), 11, 3);
lean_closure_set(x_7, 0, x_6);
lean_closure_set(x_7, 1, x_3);
lean_closure_set(x_7, 2, x_2);
x_8 = l_Lake_DSL_mkLibraryFacetDecl___lam__0___closed__1;
x_9 = l_Lean_Name_append(x_8, x_2);
x_10 = 1;
x_11 = lean_alloc_closure((void*)(l_Lake_formatQuery___boxed), 4, 2);
lean_closure_set(x_11, 0, lean_box(0));
lean_closure_set(x_11, 1, x_4);
x_12 = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(x_12, 0, x_8);
lean_ctor_set(x_12, 1, x_7);
lean_ctor_set(x_12, 2, x_3);
lean_ctor_set(x_12, 3, x_11);
lean_ctor_set_uint8(x_12, sizeof(void*)*4, x_10);
lean_ctor_set_uint8(x_12, sizeof(void*)*4 + 1, x_10);
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_9);
lean_ctor_set(x_13, 1, x_12);
return x_13;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_mkLibraryFacetDecl___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
lean_inc(x_1);
lean_inc(x_2);
x_5 = lean_alloc_closure((void*)(l_Lake_DSL_mkLibraryFacetDecl___lam__0___boxed), 11, 3);
lean_closure_set(x_5, 0, x_4);
lean_closure_set(x_5, 1, x_2);
lean_closure_set(x_5, 2, x_1);
x_6 = l_Lake_DSL_mkLibraryFacetDecl___lam__0___closed__1;
x_7 = l_Lean_Name_append(x_6, x_1);
x_8 = 1;
x_9 = lean_alloc_closure((void*)(l_Lake_formatQuery___boxed), 4, 2);
lean_closure_set(x_9, 0, lean_box(0));
lean_closure_set(x_9, 1, x_3);
x_10 = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(x_10, 0, x_6);
lean_ctor_set(x_10, 1, x_5);
lean_ctor_set(x_10, 2, x_2);
lean_ctor_set(x_10, 3, x_9);
lean_ctor_set_uint8(x_10, sizeof(void*)*4, x_8);
lean_ctor_set_uint8(x_10, sizeof(void*)*4 + 1, x_8);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_7);
lean_ctor_set(x_11, 1, x_10);
return x_11;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___lam__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("_libFacet", 9, 9);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___lam__0___closed__0;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("libraryFacetDecl", 16, 16);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__0;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ill-formed library facet declaration", 36, 36);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("LibraryFacetDecl", 16, 16);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__3;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__3;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__3;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__6;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lake.DSL.mkLibraryFacetDecl", 27, 27);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__8;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("mkLibraryFacetDecl", 18, 18);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__10;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__11;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__13() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("libraryDataDecl", 15, 15);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__13;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__15() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("library_data", 12, 12);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__16() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("«library_facet»", 17, 15);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__16;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__18() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("library_facet", 13, 13);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__19() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__18;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__20() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ill-formed library facet signature", 34, 34);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_28; uint8_t x_29; 
x_28 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__1;
lean_inc(x_1);
x_29 = l_Lean_Syntax_isOfKind(x_1, x_28);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; 
x_30 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__2;
x_31 = l_Lean_Macro_throwErrorAt___redArg(x_1, x_30, x_2, x_3);
lean_dec(x_1);
return x_31;
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; uint8_t x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_387; lean_object* x_394; 
x_32 = lean_unsigned_to_nat(0u);
x_33 = l_Lean_Syntax_getArg(x_1, x_32);
x_34 = lean_unsigned_to_nat(1u);
x_35 = l_Lean_Syntax_getArg(x_1, x_34);
x_36 = lean_unsigned_to_nat(2u);
x_211 = l_Lean_Syntax_getArg(x_1, x_36);
x_321 = lean_unsigned_to_nat(3u);
x_322 = l_Lean_Syntax_getArg(x_1, x_321);
lean_dec(x_1);
x_371 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__68;
x_394 = l_Lean_Syntax_getOptional_x3f(x_35);
lean_dec(x_35);
if (lean_obj_tag(x_394) == 0)
{
lean_object* x_395; 
x_395 = lean_box(0);
x_387 = x_395;
goto block_393;
}
else
{
uint8_t x_396; 
x_396 = !lean_is_exclusive(x_394);
if (x_396 == 0)
{
x_387 = x_394;
goto block_393;
}
else
{
lean_object* x_397; lean_object* x_398; 
x_397 = lean_ctor_get(x_394, 0);
lean_inc(x_397);
lean_dec(x_394);
x_398 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_398, 0, x_397);
x_387 = x_398;
goto block_393;
}
}
block_162:
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; 
lean_inc_ref(x_57);
x_64 = l_Array_append___redArg(x_57, x_63);
lean_dec_ref(x_63);
lean_inc(x_38);
lean_inc(x_45);
x_65 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_65, 0, x_45);
lean_ctor_set(x_65, 1, x_38);
lean_ctor_set(x_65, 2, x_64);
x_66 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__5;
lean_inc_ref(x_44);
lean_inc_ref(x_47);
lean_inc_ref(x_37);
x_67 = l_Lean_Name_mkStr4(x_37, x_47, x_44, x_66);
x_68 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__6;
lean_inc(x_45);
x_69 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_69, 0, x_45);
lean_ctor_set(x_69, 1, x_68);
x_70 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__7;
x_71 = l_Lean_Syntax_SepArray_ofElems(x_70, x_40);
lean_dec_ref(x_40);
lean_inc_ref(x_57);
x_72 = l_Array_append___redArg(x_57, x_71);
lean_dec_ref(x_71);
lean_inc(x_38);
lean_inc(x_45);
x_73 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_73, 0, x_45);
lean_ctor_set(x_73, 1, x_38);
lean_ctor_set(x_73, 2, x_72);
x_74 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__8;
lean_inc(x_45);
x_75 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_75, 0, x_45);
lean_ctor_set(x_75, 1, x_74);
lean_inc(x_45);
x_76 = l_Lean_Syntax_node3(x_45, x_67, x_69, x_73, x_75);
lean_inc(x_38);
lean_inc(x_45);
x_77 = l_Lean_Syntax_node1(x_45, x_38, x_76);
lean_inc_n(x_46, 5);
lean_inc(x_45);
x_78 = l_Lean_Syntax_node7(x_45, x_55, x_65, x_77, x_46, x_46, x_46, x_46, x_46);
x_79 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__9;
lean_inc_ref(x_39);
lean_inc_ref(x_47);
lean_inc_ref(x_37);
x_80 = l_Lean_Name_mkStr4(x_37, x_47, x_39, x_79);
lean_inc(x_45);
x_81 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_81, 0, x_45);
lean_ctor_set(x_81, 1, x_79);
x_82 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__10;
lean_inc_ref(x_39);
lean_inc_ref(x_47);
lean_inc_ref(x_37);
x_83 = l_Lean_Name_mkStr4(x_37, x_47, x_39, x_82);
x_84 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__11;
x_85 = lean_box(2);
lean_inc(x_38);
x_86 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_86, 0, x_85);
lean_ctor_set(x_86, 1, x_38);
lean_ctor_set(x_86, 2, x_84);
x_87 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__12;
x_88 = lean_array_push(x_87, x_56);
x_89 = lean_array_push(x_88, x_86);
x_90 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_90, 0, x_85);
lean_ctor_set(x_90, 1, x_83);
lean_ctor_set(x_90, 2, x_89);
x_91 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__13;
lean_inc_ref(x_39);
lean_inc_ref(x_47);
lean_inc_ref(x_37);
x_92 = l_Lean_Name_mkStr4(x_37, x_47, x_39, x_91);
x_93 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__4;
x_94 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__5;
lean_inc(x_59);
lean_inc(x_49);
x_95 = l_Lean_addMacroScope(x_49, x_94, x_59);
x_96 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__7;
lean_inc(x_58);
x_97 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_97, 0, x_96);
lean_ctor_set(x_97, 1, x_58);
lean_inc(x_45);
x_98 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_98, 0, x_45);
lean_ctor_set(x_98, 1, x_93);
lean_ctor_set(x_98, 2, x_95);
lean_ctor_set(x_98, 3, x_97);
lean_inc(x_45);
x_99 = l_Lean_Syntax_node2(x_45, x_41, x_62, x_98);
lean_inc(x_38);
lean_inc(x_45);
x_100 = l_Lean_Syntax_node1(x_45, x_38, x_99);
lean_inc(x_46);
lean_inc(x_45);
x_101 = l_Lean_Syntax_node2(x_45, x_92, x_46, x_100);
x_102 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__14;
lean_inc(x_45);
x_103 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_103, 0, x_45);
lean_ctor_set(x_103, 1, x_102);
x_104 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__15;
lean_inc_ref(x_44);
lean_inc_ref(x_47);
lean_inc_ref(x_37);
x_105 = l_Lean_Name_mkStr4(x_37, x_47, x_44, x_104);
x_106 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__9;
x_107 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__11;
lean_inc(x_59);
lean_inc(x_49);
x_108 = l_Lean_addMacroScope(x_49, x_107, x_59);
x_109 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__12;
lean_inc(x_58);
x_110 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_110, 0, x_109);
lean_ctor_set(x_110, 1, x_58);
lean_inc(x_45);
x_111 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_111, 0, x_45);
lean_ctor_set(x_111, 1, x_106);
lean_ctor_set(x_111, 2, x_108);
lean_ctor_set(x_111, 3, x_110);
x_112 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__21;
lean_inc_ref(x_44);
lean_inc_ref(x_47);
lean_inc_ref(x_37);
x_113 = l_Lean_Name_mkStr4(x_37, x_47, x_44, x_112);
x_114 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__22;
lean_inc_ref(x_44);
lean_inc_ref(x_47);
lean_inc_ref(x_37);
x_115 = l_Lean_Name_mkStr4(x_37, x_47, x_44, x_114);
x_116 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__23;
lean_inc(x_45);
x_117 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_117, 0, x_45);
lean_ctor_set(x_117, 1, x_116);
x_118 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__25;
x_119 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__27;
x_120 = lean_box(0);
x_121 = l_Lean_addMacroScope(x_49, x_120, x_59);
x_122 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__29;
lean_inc_ref(x_39);
lean_inc_ref(x_47);
lean_inc_ref(x_37);
x_123 = l_Lean_Name_mkStr3(x_37, x_47, x_39);
x_124 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_124, 0, x_123);
x_125 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__30;
lean_inc_ref(x_37);
x_126 = l_Lean_Name_mkStr3(x_37, x_125, x_39);
x_127 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_127, 0, x_126);
lean_inc_ref(x_37);
x_128 = l_Lean_Name_mkStr2(x_37, x_125);
x_129 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_129, 0, x_128);
lean_inc_ref(x_47);
lean_inc_ref(x_37);
x_130 = l_Lean_Name_mkStr2(x_37, x_47);
x_131 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_131, 0, x_130);
lean_inc_ref(x_37);
x_132 = l_Lean_Name_mkStr1(x_37);
x_133 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_133, 0, x_132);
x_134 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_134, 0, x_133);
lean_ctor_set(x_134, 1, x_58);
x_135 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_135, 0, x_131);
lean_ctor_set(x_135, 1, x_134);
x_136 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_136, 0, x_129);
lean_ctor_set(x_136, 1, x_135);
x_137 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_137, 0, x_127);
lean_ctor_set(x_137, 1, x_136);
x_138 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_138, 0, x_124);
lean_ctor_set(x_138, 1, x_137);
x_139 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_139, 0, x_122);
lean_ctor_set(x_139, 1, x_138);
lean_inc(x_45);
x_140 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_140, 0, x_45);
lean_ctor_set(x_140, 1, x_119);
lean_ctor_set(x_140, 2, x_121);
lean_ctor_set(x_140, 3, x_139);
lean_inc(x_45);
x_141 = l_Lean_Syntax_node1(x_45, x_118, x_140);
lean_inc(x_45);
x_142 = l_Lean_Syntax_node2(x_45, x_115, x_117, x_141);
x_143 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__31;
lean_inc_ref(x_44);
lean_inc_ref(x_47);
lean_inc_ref(x_37);
x_144 = l_Lean_Name_mkStr4(x_37, x_47, x_44, x_143);
lean_inc(x_45);
x_145 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_145, 0, x_45);
lean_ctor_set(x_145, 1, x_143);
x_146 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__32;
x_147 = l_Lean_Name_mkStr4(x_37, x_47, x_44, x_146);
lean_inc(x_38);
lean_inc(x_45);
x_148 = l_Lean_Syntax_node1(x_45, x_38, x_61);
x_149 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__33;
lean_inc(x_45);
x_150 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_150, 0, x_45);
lean_ctor_set(x_150, 1, x_149);
lean_inc(x_46);
lean_inc(x_45);
x_151 = l_Lean_Syntax_node4(x_45, x_147, x_148, x_46, x_150, x_48);
lean_inc(x_45);
x_152 = l_Lean_Syntax_node2(x_45, x_144, x_145, x_151);
x_153 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__34;
lean_inc(x_45);
x_154 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_154, 0, x_45);
lean_ctor_set(x_154, 1, x_153);
lean_inc(x_45);
x_155 = l_Lean_Syntax_node3(x_45, x_113, x_142, x_152, x_154);
lean_inc(x_38);
lean_inc(x_45);
x_156 = l_Lean_Syntax_node3(x_45, x_38, x_54, x_51, x_155);
lean_inc(x_45);
x_157 = l_Lean_Syntax_node2(x_45, x_105, x_111, x_156);
lean_inc(x_46);
lean_inc(x_45);
x_158 = l_Lean_Syntax_node2(x_45, x_42, x_46, x_46);
if (lean_obj_tag(x_53) == 1)
{
lean_object* x_159; lean_object* x_160; 
x_159 = lean_ctor_get(x_53, 0);
lean_inc(x_159);
lean_dec_ref(x_53);
x_160 = l_Array_mkArray1___redArg(x_159);
x_4 = x_38;
x_5 = x_52;
x_6 = x_81;
x_7 = x_57;
x_8 = x_158;
x_9 = x_80;
x_10 = x_101;
x_11 = x_43;
x_12 = x_45;
x_13 = x_157;
x_14 = x_60;
x_15 = x_103;
x_16 = x_90;
x_17 = x_78;
x_18 = x_50;
x_19 = x_160;
goto block_27;
}
else
{
lean_object* x_161; 
lean_dec(x_53);
x_161 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__35;
x_4 = x_38;
x_5 = x_52;
x_6 = x_81;
x_7 = x_57;
x_8 = x_158;
x_9 = x_80;
x_10 = x_101;
x_11 = x_43;
x_12 = x_45;
x_13 = x_157;
x_14 = x_60;
x_15 = x_103;
x_16 = x_90;
x_17 = x_78;
x_18 = x_50;
x_19 = x_161;
goto block_27;
}
}
block_210:
{
lean_object* x_189; 
x_189 = l_Lake_DSL_expandOptSimpleBinder(x_165, x_186, x_167);
if (lean_obj_tag(x_189) == 0)
{
lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; 
x_190 = lean_ctor_get(x_189, 0);
lean_inc(x_190);
x_191 = lean_ctor_get(x_189, 1);
lean_inc(x_191);
lean_dec_ref(x_189);
x_192 = l_Lean_mkIdentFrom(x_173, x_188, x_180);
x_193 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__14;
x_194 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__15;
lean_inc(x_174);
x_195 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_195, 0, x_174);
lean_ctor_set(x_195, 1, x_194);
x_196 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__39;
lean_inc(x_174);
x_197 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_197, 0, x_174);
lean_ctor_set(x_197, 1, x_196);
lean_inc(x_183);
lean_inc_ref(x_197);
lean_inc(x_176);
lean_inc(x_174);
x_198 = l_Lean_Syntax_node5(x_174, x_193, x_176, x_195, x_173, x_197, x_183);
x_199 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__40;
lean_inc_ref(x_166);
lean_inc_ref(x_177);
lean_inc_ref(x_164);
x_200 = l_Lean_Name_mkStr4(x_164, x_177, x_166, x_199);
x_201 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__41;
lean_inc_ref(x_166);
lean_inc_ref(x_177);
lean_inc_ref(x_164);
x_202 = l_Lean_Name_mkStr4(x_164, x_177, x_166, x_201);
if (lean_obj_tag(x_168) == 1)
{
lean_object* x_203; lean_object* x_204; 
x_203 = lean_ctor_get(x_168, 0);
lean_inc(x_203);
lean_dec_ref(x_168);
x_204 = l_Array_mkArray1___redArg(x_203);
x_37 = x_164;
x_38 = x_163;
x_39 = x_166;
x_40 = x_169;
x_41 = x_170;
x_42 = x_171;
x_43 = x_172;
x_44 = x_175;
x_45 = x_174;
x_46 = x_176;
x_47 = x_177;
x_48 = x_178;
x_49 = x_179;
x_50 = x_200;
x_51 = x_181;
x_52 = x_191;
x_53 = x_182;
x_54 = x_183;
x_55 = x_202;
x_56 = x_192;
x_57 = x_184;
x_58 = x_185;
x_59 = x_187;
x_60 = x_198;
x_61 = x_190;
x_62 = x_197;
x_63 = x_204;
goto block_162;
}
else
{
lean_object* x_205; 
lean_dec(x_168);
x_205 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__35;
x_37 = x_164;
x_38 = x_163;
x_39 = x_166;
x_40 = x_169;
x_41 = x_170;
x_42 = x_171;
x_43 = x_172;
x_44 = x_175;
x_45 = x_174;
x_46 = x_176;
x_47 = x_177;
x_48 = x_178;
x_49 = x_179;
x_50 = x_200;
x_51 = x_181;
x_52 = x_191;
x_53 = x_182;
x_54 = x_183;
x_55 = x_202;
x_56 = x_192;
x_57 = x_184;
x_58 = x_185;
x_59 = x_187;
x_60 = x_198;
x_61 = x_190;
x_62 = x_197;
x_63 = x_205;
goto block_162;
}
}
else
{
uint8_t x_206; 
lean_dec(x_188);
lean_dec(x_187);
lean_dec(x_185);
lean_dec_ref(x_184);
lean_dec(x_183);
lean_dec(x_182);
lean_dec(x_181);
lean_dec(x_179);
lean_dec(x_178);
lean_dec_ref(x_177);
lean_dec(x_176);
lean_dec_ref(x_175);
lean_dec(x_174);
lean_dec(x_173);
lean_dec(x_172);
lean_dec(x_171);
lean_dec(x_170);
lean_dec_ref(x_169);
lean_dec(x_168);
lean_dec_ref(x_166);
lean_dec_ref(x_164);
lean_dec(x_163);
x_206 = !lean_is_exclusive(x_189);
if (x_206 == 0)
{
return x_189;
}
else
{
lean_object* x_207; lean_object* x_208; lean_object* x_209; 
x_207 = lean_ctor_get(x_189, 0);
x_208 = lean_ctor_get(x_189, 1);
lean_inc(x_208);
lean_inc(x_207);
lean_dec(x_189);
x_209 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_209, 0, x_207);
lean_ctor_set(x_209, 1, x_208);
return x_209;
}
}
}
block_320:
{
uint8_t x_228; 
x_228 = !lean_is_exclusive(x_226);
if (x_228 == 0)
{
lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; uint8_t x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; uint8_t x_260; 
x_229 = lean_ctor_get(x_226, 1);
x_230 = lean_ctor_get(x_226, 2);
x_231 = lean_ctor_get(x_226, 5);
x_232 = l_Lean_replaceRef(x_211, x_231);
lean_dec(x_231);
lean_dec(x_211);
lean_inc(x_232);
lean_inc(x_230);
lean_inc(x_229);
lean_ctor_set(x_226, 5, x_232);
x_233 = 0;
x_234 = l_Lean_SourceInfo_fromRef(x_232, x_233);
lean_dec(x_232);
x_235 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__42;
lean_inc_ref(x_221);
lean_inc_ref(x_222);
lean_inc_ref(x_212);
x_236 = l_Lean_Name_mkStr4(x_212, x_222, x_221, x_235);
x_237 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__43;
lean_inc_ref(x_221);
lean_inc_ref(x_222);
lean_inc_ref(x_212);
x_238 = l_Lean_Name_mkStr4(x_212, x_222, x_221, x_237);
x_239 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__45;
x_240 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__46;
lean_inc(x_234);
x_241 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_241, 0, x_234);
lean_ctor_set(x_241, 1, x_239);
lean_ctor_set(x_241, 2, x_240);
lean_inc_ref(x_241);
lean_inc(x_234);
x_242 = l_Lean_Syntax_node1(x_234, x_238, x_241);
x_243 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__47;
x_244 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__48;
lean_inc_ref(x_222);
lean_inc_ref(x_212);
x_245 = l_Lean_Name_mkStr4(x_212, x_222, x_243, x_244);
x_246 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__17;
x_247 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__19;
lean_inc(x_230);
lean_inc(x_229);
x_248 = l_Lean_addMacroScope(x_229, x_247, x_230);
x_249 = lean_box(0);
lean_inc(x_234);
x_250 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_250, 0, x_234);
lean_ctor_set(x_250, 1, x_246);
lean_ctor_set(x_250, 2, x_248);
lean_ctor_set(x_250, 3, x_249);
lean_inc_ref(x_241);
lean_inc(x_234);
x_251 = l_Lean_Syntax_node2(x_234, x_245, x_250, x_241);
lean_inc(x_234);
x_252 = l_Lean_Syntax_node2(x_234, x_236, x_242, x_251);
x_253 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__53;
x_254 = lean_array_push(x_253, x_252);
x_255 = l_Lake_DSL_expandAttrs(x_216);
x_256 = l_Array_append___redArg(x_254, x_255);
lean_dec_ref(x_255);
x_257 = l_Lake_DSL_expandIdentOrStrAsIdent(x_224);
x_258 = l_Lean_TSyntax_getId(x_257);
lean_inc(x_258);
lean_inc(x_257);
x_259 = l_Lake_Name_quoteFrom(x_257, x_258, x_233);
x_260 = l_Lean_Name_hasMacroScopes(x_258);
if (x_260 == 0)
{
lean_object* x_261; 
x_261 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___lam__0(x_258);
x_163 = x_239;
x_164 = x_212;
x_165 = x_213;
x_166 = x_214;
x_167 = x_227;
x_168 = x_215;
x_169 = x_256;
x_170 = x_217;
x_171 = x_219;
x_172 = x_220;
x_173 = x_257;
x_174 = x_234;
x_175 = x_221;
x_176 = x_241;
x_177 = x_222;
x_178 = x_223;
x_179 = x_229;
x_180 = x_233;
x_181 = x_259;
x_182 = x_225;
x_183 = x_218;
x_184 = x_240;
x_185 = x_249;
x_186 = x_226;
x_187 = x_230;
x_188 = x_261;
goto block_210;
}
else
{
lean_object* x_262; uint8_t x_263; 
x_262 = l_Lean_extractMacroScopes(x_258);
x_263 = !lean_is_exclusive(x_262);
if (x_263 == 0)
{
lean_object* x_264; lean_object* x_265; lean_object* x_266; 
x_264 = lean_ctor_get(x_262, 0);
x_265 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___lam__0(x_264);
lean_ctor_set(x_262, 0, x_265);
x_266 = l_Lean_MacroScopesView_review(x_262);
x_163 = x_239;
x_164 = x_212;
x_165 = x_213;
x_166 = x_214;
x_167 = x_227;
x_168 = x_215;
x_169 = x_256;
x_170 = x_217;
x_171 = x_219;
x_172 = x_220;
x_173 = x_257;
x_174 = x_234;
x_175 = x_221;
x_176 = x_241;
x_177 = x_222;
x_178 = x_223;
x_179 = x_229;
x_180 = x_233;
x_181 = x_259;
x_182 = x_225;
x_183 = x_218;
x_184 = x_240;
x_185 = x_249;
x_186 = x_226;
x_187 = x_230;
x_188 = x_266;
goto block_210;
}
else
{
lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; 
x_267 = lean_ctor_get(x_262, 0);
x_268 = lean_ctor_get(x_262, 1);
x_269 = lean_ctor_get(x_262, 2);
x_270 = lean_ctor_get(x_262, 3);
lean_inc(x_270);
lean_inc(x_269);
lean_inc(x_268);
lean_inc(x_267);
lean_dec(x_262);
x_271 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___lam__0(x_267);
x_272 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_272, 0, x_271);
lean_ctor_set(x_272, 1, x_268);
lean_ctor_set(x_272, 2, x_269);
lean_ctor_set(x_272, 3, x_270);
x_273 = l_Lean_MacroScopesView_review(x_272);
x_163 = x_239;
x_164 = x_212;
x_165 = x_213;
x_166 = x_214;
x_167 = x_227;
x_168 = x_215;
x_169 = x_256;
x_170 = x_217;
x_171 = x_219;
x_172 = x_220;
x_173 = x_257;
x_174 = x_234;
x_175 = x_221;
x_176 = x_241;
x_177 = x_222;
x_178 = x_223;
x_179 = x_229;
x_180 = x_233;
x_181 = x_259;
x_182 = x_225;
x_183 = x_218;
x_184 = x_240;
x_185 = x_249;
x_186 = x_226;
x_187 = x_230;
x_188 = x_273;
goto block_210;
}
}
}
else
{
lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; uint8_t x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; uint8_t x_309; 
x_274 = lean_ctor_get(x_226, 0);
x_275 = lean_ctor_get(x_226, 1);
x_276 = lean_ctor_get(x_226, 2);
x_277 = lean_ctor_get(x_226, 3);
x_278 = lean_ctor_get(x_226, 4);
x_279 = lean_ctor_get(x_226, 5);
lean_inc(x_279);
lean_inc(x_278);
lean_inc(x_277);
lean_inc(x_276);
lean_inc(x_275);
lean_inc(x_274);
lean_dec(x_226);
x_280 = l_Lean_replaceRef(x_211, x_279);
lean_dec(x_279);
lean_dec(x_211);
lean_inc(x_280);
lean_inc(x_276);
lean_inc(x_275);
x_281 = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(x_281, 0, x_274);
lean_ctor_set(x_281, 1, x_275);
lean_ctor_set(x_281, 2, x_276);
lean_ctor_set(x_281, 3, x_277);
lean_ctor_set(x_281, 4, x_278);
lean_ctor_set(x_281, 5, x_280);
x_282 = 0;
x_283 = l_Lean_SourceInfo_fromRef(x_280, x_282);
lean_dec(x_280);
x_284 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__42;
lean_inc_ref(x_221);
lean_inc_ref(x_222);
lean_inc_ref(x_212);
x_285 = l_Lean_Name_mkStr4(x_212, x_222, x_221, x_284);
x_286 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__43;
lean_inc_ref(x_221);
lean_inc_ref(x_222);
lean_inc_ref(x_212);
x_287 = l_Lean_Name_mkStr4(x_212, x_222, x_221, x_286);
x_288 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__45;
x_289 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__46;
lean_inc(x_283);
x_290 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_290, 0, x_283);
lean_ctor_set(x_290, 1, x_288);
lean_ctor_set(x_290, 2, x_289);
lean_inc_ref(x_290);
lean_inc(x_283);
x_291 = l_Lean_Syntax_node1(x_283, x_287, x_290);
x_292 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__47;
x_293 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__48;
lean_inc_ref(x_222);
lean_inc_ref(x_212);
x_294 = l_Lean_Name_mkStr4(x_212, x_222, x_292, x_293);
x_295 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__17;
x_296 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__19;
lean_inc(x_276);
lean_inc(x_275);
x_297 = l_Lean_addMacroScope(x_275, x_296, x_276);
x_298 = lean_box(0);
lean_inc(x_283);
x_299 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_299, 0, x_283);
lean_ctor_set(x_299, 1, x_295);
lean_ctor_set(x_299, 2, x_297);
lean_ctor_set(x_299, 3, x_298);
lean_inc_ref(x_290);
lean_inc(x_283);
x_300 = l_Lean_Syntax_node2(x_283, x_294, x_299, x_290);
lean_inc(x_283);
x_301 = l_Lean_Syntax_node2(x_283, x_285, x_291, x_300);
x_302 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__53;
x_303 = lean_array_push(x_302, x_301);
x_304 = l_Lake_DSL_expandAttrs(x_216);
x_305 = l_Array_append___redArg(x_303, x_304);
lean_dec_ref(x_304);
x_306 = l_Lake_DSL_expandIdentOrStrAsIdent(x_224);
x_307 = l_Lean_TSyntax_getId(x_306);
lean_inc(x_307);
lean_inc(x_306);
x_308 = l_Lake_Name_quoteFrom(x_306, x_307, x_282);
x_309 = l_Lean_Name_hasMacroScopes(x_307);
if (x_309 == 0)
{
lean_object* x_310; 
x_310 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___lam__0(x_307);
x_163 = x_288;
x_164 = x_212;
x_165 = x_213;
x_166 = x_214;
x_167 = x_227;
x_168 = x_215;
x_169 = x_305;
x_170 = x_217;
x_171 = x_219;
x_172 = x_220;
x_173 = x_306;
x_174 = x_283;
x_175 = x_221;
x_176 = x_290;
x_177 = x_222;
x_178 = x_223;
x_179 = x_275;
x_180 = x_282;
x_181 = x_308;
x_182 = x_225;
x_183 = x_218;
x_184 = x_289;
x_185 = x_298;
x_186 = x_281;
x_187 = x_276;
x_188 = x_310;
goto block_210;
}
else
{
lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; 
x_311 = l_Lean_extractMacroScopes(x_307);
x_312 = lean_ctor_get(x_311, 0);
lean_inc(x_312);
x_313 = lean_ctor_get(x_311, 1);
lean_inc(x_313);
x_314 = lean_ctor_get(x_311, 2);
lean_inc(x_314);
x_315 = lean_ctor_get(x_311, 3);
lean_inc(x_315);
if (lean_is_exclusive(x_311)) {
 lean_ctor_release(x_311, 0);
 lean_ctor_release(x_311, 1);
 lean_ctor_release(x_311, 2);
 lean_ctor_release(x_311, 3);
 x_316 = x_311;
} else {
 lean_dec_ref(x_311);
 x_316 = lean_box(0);
}
x_317 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___lam__0(x_312);
if (lean_is_scalar(x_316)) {
 x_318 = lean_alloc_ctor(0, 4, 0);
} else {
 x_318 = x_316;
}
lean_ctor_set(x_318, 0, x_317);
lean_ctor_set(x_318, 1, x_313);
lean_ctor_set(x_318, 2, x_314);
lean_ctor_set(x_318, 3, x_315);
x_319 = l_Lean_MacroScopesView_review(x_318);
x_163 = x_288;
x_164 = x_212;
x_165 = x_213;
x_166 = x_214;
x_167 = x_227;
x_168 = x_215;
x_169 = x_305;
x_170 = x_217;
x_171 = x_219;
x_172 = x_220;
x_173 = x_306;
x_174 = x_283;
x_175 = x_221;
x_176 = x_290;
x_177 = x_222;
x_178 = x_223;
x_179 = x_275;
x_180 = x_282;
x_181 = x_308;
x_182 = x_225;
x_183 = x_218;
x_184 = x_289;
x_185 = x_298;
x_186 = x_281;
x_187 = x_276;
x_188 = x_319;
goto block_210;
}
}
}
block_370:
{
lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; uint8_t x_334; 
x_329 = l_Lean_Syntax_getArg(x_322, x_36);
x_330 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54;
x_331 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55;
x_332 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56;
x_333 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__58;
lean_inc(x_329);
x_334 = l_Lean_Syntax_isOfKind(x_329, x_333);
if (x_334 == 0)
{
lean_object* x_335; lean_object* x_336; 
lean_dec(x_329);
lean_dec(x_326);
lean_dec(x_325);
lean_dec(x_324);
lean_dec(x_323);
lean_dec(x_211);
x_335 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__20;
x_336 = l_Lean_Macro_throwErrorAt___redArg(x_322, x_335, x_327, x_328);
lean_dec(x_322);
return x_336;
}
else
{
lean_object* x_337; lean_object* x_338; lean_object* x_339; uint8_t x_340; 
x_337 = l_Lean_Syntax_getArg(x_322, x_321);
x_338 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__59;
x_339 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__61;
lean_inc(x_337);
x_340 = l_Lean_Syntax_isOfKind(x_337, x_339);
if (x_340 == 0)
{
lean_object* x_341; lean_object* x_342; 
lean_dec(x_337);
lean_dec(x_329);
lean_dec(x_326);
lean_dec(x_325);
lean_dec(x_324);
lean_dec(x_323);
lean_dec(x_211);
x_341 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__20;
x_342 = l_Lean_Macro_throwErrorAt___redArg(x_322, x_341, x_327, x_328);
lean_dec(x_322);
return x_342;
}
else
{
lean_object* x_343; lean_object* x_344; uint8_t x_345; 
x_343 = l_Lean_Syntax_getArg(x_337, x_36);
x_344 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__64;
lean_inc(x_343);
x_345 = l_Lean_Syntax_isOfKind(x_343, x_344);
if (x_345 == 0)
{
lean_object* x_346; lean_object* x_347; 
lean_dec(x_343);
lean_dec(x_337);
lean_dec(x_329);
lean_dec(x_326);
lean_dec(x_325);
lean_dec(x_324);
lean_dec(x_323);
lean_dec(x_211);
x_346 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__20;
x_347 = l_Lean_Macro_throwErrorAt___redArg(x_322, x_346, x_327, x_328);
lean_dec(x_322);
return x_347;
}
else
{
lean_object* x_348; uint8_t x_349; 
x_348 = l_Lean_Syntax_getArg(x_343, x_32);
x_349 = l_Lean_Syntax_matchesNull(x_348, x_32);
if (x_349 == 0)
{
lean_object* x_350; lean_object* x_351; 
lean_dec(x_343);
lean_dec(x_337);
lean_dec(x_329);
lean_dec(x_326);
lean_dec(x_325);
lean_dec(x_324);
lean_dec(x_323);
lean_dec(x_211);
x_350 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__20;
x_351 = l_Lean_Macro_throwErrorAt___redArg(x_322, x_350, x_327, x_328);
lean_dec(x_322);
return x_351;
}
else
{
lean_object* x_352; uint8_t x_353; 
x_352 = l_Lean_Syntax_getArg(x_343, x_34);
lean_dec(x_343);
x_353 = l_Lean_Syntax_matchesNull(x_352, x_32);
if (x_353 == 0)
{
lean_object* x_354; lean_object* x_355; 
lean_dec(x_337);
lean_dec(x_329);
lean_dec(x_326);
lean_dec(x_325);
lean_dec(x_324);
lean_dec(x_323);
lean_dec(x_211);
x_354 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__20;
x_355 = l_Lean_Macro_throwErrorAt___redArg(x_322, x_354, x_327, x_328);
lean_dec(x_322);
return x_355;
}
else
{
lean_object* x_356; lean_object* x_357; lean_object* x_358; uint8_t x_359; 
x_356 = l_Lean_Syntax_getArg(x_329, x_34);
lean_dec(x_329);
x_357 = l_Lean_Syntax_getArg(x_337, x_34);
x_358 = l_Lean_Syntax_getArg(x_337, x_321);
lean_dec(x_337);
x_359 = l_Lean_Syntax_isNone(x_358);
if (x_359 == 0)
{
uint8_t x_360; 
lean_inc(x_358);
x_360 = l_Lean_Syntax_matchesNull(x_358, x_34);
if (x_360 == 0)
{
lean_object* x_361; lean_object* x_362; 
lean_dec(x_358);
lean_dec(x_357);
lean_dec(x_356);
lean_dec(x_326);
lean_dec(x_325);
lean_dec(x_324);
lean_dec(x_323);
lean_dec(x_211);
x_361 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__20;
x_362 = l_Lean_Macro_throwErrorAt___redArg(x_322, x_361, x_327, x_328);
lean_dec(x_322);
return x_362;
}
else
{
lean_object* x_363; lean_object* x_364; uint8_t x_365; 
x_363 = l_Lean_Syntax_getArg(x_358, x_32);
lean_dec(x_358);
x_364 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__66;
lean_inc(x_363);
x_365 = l_Lean_Syntax_isOfKind(x_363, x_364);
if (x_365 == 0)
{
lean_object* x_366; lean_object* x_367; 
lean_dec(x_363);
lean_dec(x_357);
lean_dec(x_356);
lean_dec(x_326);
lean_dec(x_325);
lean_dec(x_324);
lean_dec(x_323);
lean_dec(x_211);
x_366 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__20;
x_367 = l_Lean_Macro_throwErrorAt___redArg(x_322, x_366, x_327, x_328);
lean_dec(x_322);
return x_367;
}
else
{
lean_object* x_368; 
lean_dec(x_322);
x_368 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_368, 0, x_363);
x_212 = x_330;
x_213 = x_326;
x_214 = x_338;
x_215 = x_323;
x_216 = x_324;
x_217 = x_333;
x_218 = x_356;
x_219 = x_344;
x_220 = x_339;
x_221 = x_332;
x_222 = x_331;
x_223 = x_357;
x_224 = x_325;
x_225 = x_368;
x_226 = x_327;
x_227 = x_328;
goto block_320;
}
}
}
else
{
lean_object* x_369; 
lean_dec(x_358);
lean_dec(x_322);
x_369 = lean_box(0);
x_212 = x_330;
x_213 = x_326;
x_214 = x_338;
x_215 = x_323;
x_216 = x_324;
x_217 = x_333;
x_218 = x_356;
x_219 = x_344;
x_220 = x_339;
x_221 = x_332;
x_222 = x_331;
x_223 = x_357;
x_224 = x_325;
x_225 = x_369;
x_226 = x_327;
x_227 = x_328;
goto block_320;
}
}
}
}
}
}
}
block_386:
{
uint8_t x_374; 
lean_inc(x_322);
x_374 = l_Lean_Syntax_isOfKind(x_322, x_371);
if (x_374 == 0)
{
lean_object* x_375; lean_object* x_376; 
lean_dec(x_373);
lean_dec(x_372);
lean_dec(x_211);
x_375 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__20;
x_376 = l_Lean_Macro_throwErrorAt___redArg(x_322, x_375, x_2, x_3);
lean_dec(x_322);
return x_376;
}
else
{
lean_object* x_377; lean_object* x_378; uint8_t x_379; 
x_377 = l_Lean_Syntax_getArg(x_322, x_32);
x_378 = l_Lean_Syntax_getArg(x_322, x_34);
x_379 = l_Lean_Syntax_isNone(x_378);
if (x_379 == 0)
{
uint8_t x_380; 
lean_inc(x_378);
x_380 = l_Lean_Syntax_matchesNull(x_378, x_34);
if (x_380 == 0)
{
lean_object* x_381; lean_object* x_382; 
lean_dec(x_378);
lean_dec(x_377);
lean_dec(x_373);
lean_dec(x_372);
lean_dec(x_211);
x_381 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__20;
x_382 = l_Lean_Macro_throwErrorAt___redArg(x_322, x_381, x_2, x_3);
lean_dec(x_322);
return x_382;
}
else
{
lean_object* x_383; lean_object* x_384; 
x_383 = l_Lean_Syntax_getArg(x_378, x_32);
lean_dec(x_378);
x_384 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_384, 0, x_383);
x_323 = x_373;
x_324 = x_372;
x_325 = x_377;
x_326 = x_384;
x_327 = x_2;
x_328 = x_3;
goto block_370;
}
}
else
{
lean_object* x_385; 
lean_dec(x_378);
x_385 = lean_box(0);
x_323 = x_373;
x_324 = x_372;
x_325 = x_377;
x_326 = x_385;
x_327 = x_2;
x_328 = x_3;
goto block_370;
}
}
}
block_393:
{
lean_object* x_388; 
x_388 = l_Lean_Syntax_getOptional_x3f(x_33);
lean_dec(x_33);
if (lean_obj_tag(x_388) == 0)
{
lean_object* x_389; 
x_389 = lean_box(0);
x_372 = x_387;
x_373 = x_389;
goto block_386;
}
else
{
uint8_t x_390; 
x_390 = !lean_is_exclusive(x_388);
if (x_390 == 0)
{
x_372 = x_387;
x_373 = x_388;
goto block_386;
}
else
{
lean_object* x_391; lean_object* x_392; 
x_391 = lean_ctor_get(x_388, 0);
lean_inc(x_391);
lean_dec(x_388);
x_392 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_392, 0, x_391);
x_372 = x_387;
x_373 = x_392;
goto block_386;
}
}
}
}
block_27:
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_20 = l_Array_append___redArg(x_7, x_19);
lean_dec_ref(x_19);
lean_inc(x_4);
lean_inc(x_12);
x_21 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_21, 0, x_12);
lean_ctor_set(x_21, 1, x_4);
lean_ctor_set(x_21, 2, x_20);
lean_inc(x_12);
x_22 = l_Lean_Syntax_node4(x_12, x_11, x_15, x_13, x_8, x_21);
lean_inc(x_12);
x_23 = l_Lean_Syntax_node4(x_12, x_9, x_6, x_16, x_10, x_22);
lean_inc(x_12);
x_24 = l_Lean_Syntax_node2(x_12, x_18, x_17, x_23);
x_25 = l_Lean_Syntax_node2(x_12, x_4, x_14, x_24);
x_26 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_26, 0, x_25);
lean_ctor_set(x_26, 1, x_5);
return x_26;
}
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl__1___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("expandLibraryFacetDecl", 22, 22);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl__1___closed__0;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__9;
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl__1() {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__0;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__1;
x_4 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl__1___closed__1;
x_5 = lean_alloc_closure((void*)(l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl), 3, 0);
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___redArg(x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl__1___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl__1();
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_mkTargetDecl___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_12; lean_object* x_13; 
lean_inc_ref(x_4);
x_12 = lean_apply_1(x_1, x_4);
lean_inc_ref(x_9);
x_13 = l_Lake_ensureJob___redArg(x_2, x_12, x_5, x_6, x_7, x_8, x_9, x_10);
if (lean_obj_tag(x_13) == 0)
{
uint8_t x_14; 
x_14 = !lean_is_exclusive(x_13);
if (x_14 == 0)
{
lean_object* x_15; uint8_t x_16; 
x_15 = lean_ctor_get(x_13, 0);
x_16 = !lean_is_exclusive(x_15);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_17 = lean_ctor_get(x_15, 2);
lean_dec(x_17);
x_18 = lean_ctor_get(x_9, 3);
lean_inc(x_18);
lean_dec_ref(x_9);
x_19 = lean_st_ref_take(x_18);
x_20 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_20, 0, x_4);
lean_ctor_set(x_20, 1, x_3);
x_21 = l_Lake_BuildInfo_key(x_20);
x_22 = l_Lake_BuildKey_toSimpleString(x_21);
x_23 = 0;
lean_ctor_set(x_15, 2, x_22);
lean_ctor_set_uint8(x_15, sizeof(void*)*3, x_23);
lean_inc_ref(x_15);
x_24 = l_Lake_Job_toOpaque___redArg(x_15);
x_25 = lean_array_push(x_19, x_24);
x_26 = lean_st_ref_set(x_18, x_25);
lean_dec(x_18);
x_27 = l_Lake_Job_renew___redArg(x_15);
lean_ctor_set(x_13, 0, x_27);
return x_13;
}
else
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; 
x_28 = lean_ctor_get(x_15, 0);
x_29 = lean_ctor_get(x_15, 1);
lean_inc(x_29);
lean_inc(x_28);
lean_dec(x_15);
x_30 = lean_ctor_get(x_9, 3);
lean_inc(x_30);
lean_dec_ref(x_9);
x_31 = lean_st_ref_take(x_30);
x_32 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_32, 0, x_4);
lean_ctor_set(x_32, 1, x_3);
x_33 = l_Lake_BuildInfo_key(x_32);
x_34 = l_Lake_BuildKey_toSimpleString(x_33);
x_35 = 0;
x_36 = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(x_36, 0, x_28);
lean_ctor_set(x_36, 1, x_29);
lean_ctor_set(x_36, 2, x_34);
lean_ctor_set_uint8(x_36, sizeof(void*)*3, x_35);
lean_inc_ref(x_36);
x_37 = l_Lake_Job_toOpaque___redArg(x_36);
x_38 = lean_array_push(x_31, x_37);
x_39 = lean_st_ref_set(x_30, x_38);
lean_dec(x_30);
x_40 = l_Lake_Job_renew___redArg(x_36);
lean_ctor_set(x_13, 0, x_40);
return x_13;
}
}
else
{
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; 
x_41 = lean_ctor_get(x_13, 0);
x_42 = lean_ctor_get(x_13, 1);
lean_inc(x_42);
lean_inc(x_41);
lean_dec(x_13);
x_43 = lean_ctor_get(x_41, 0);
lean_inc_ref(x_43);
x_44 = lean_ctor_get(x_41, 1);
lean_inc(x_44);
if (lean_is_exclusive(x_41)) {
 lean_ctor_release(x_41, 0);
 lean_ctor_release(x_41, 1);
 lean_ctor_release(x_41, 2);
 x_45 = x_41;
} else {
 lean_dec_ref(x_41);
 x_45 = lean_box(0);
}
x_46 = lean_ctor_get(x_9, 3);
lean_inc(x_46);
lean_dec_ref(x_9);
x_47 = lean_st_ref_take(x_46);
x_48 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_48, 0, x_4);
lean_ctor_set(x_48, 1, x_3);
x_49 = l_Lake_BuildInfo_key(x_48);
x_50 = l_Lake_BuildKey_toSimpleString(x_49);
x_51 = 0;
if (lean_is_scalar(x_45)) {
 x_52 = lean_alloc_ctor(0, 3, 1);
} else {
 x_52 = x_45;
}
lean_ctor_set(x_52, 0, x_43);
lean_ctor_set(x_52, 1, x_44);
lean_ctor_set(x_52, 2, x_50);
lean_ctor_set_uint8(x_52, sizeof(void*)*3, x_51);
lean_inc_ref(x_52);
x_53 = l_Lake_Job_toOpaque___redArg(x_52);
x_54 = lean_array_push(x_47, x_53);
x_55 = lean_st_ref_set(x_46, x_54);
lean_dec(x_46);
x_56 = l_Lake_Job_renew___redArg(x_52);
x_57 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_57, 0, x_56);
lean_ctor_set(x_57, 1, x_42);
return x_57;
}
}
else
{
lean_dec_ref(x_9);
lean_dec_ref(x_4);
lean_dec(x_3);
return x_13;
}
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_mkTargetDecl___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; 
x_12 = l_Lake_DSL_mkTargetDecl___lam__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
return x_12;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_mkTargetDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
lean_inc(x_3);
x_8 = lean_alloc_closure((void*)(l_Lake_DSL_mkTargetDecl___lam__0___boxed), 11, 3);
lean_closure_set(x_8, 0, x_7);
lean_closure_set(x_8, 1, x_4);
lean_closure_set(x_8, 2, x_3);
x_9 = lean_alloc_closure((void*)(l_Lake_formatQuery___boxed), 4, 2);
lean_closure_set(x_9, 0, lean_box(0));
lean_closure_set(x_9, 1, x_5);
x_10 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_10, 0, x_8);
lean_ctor_set(x_10, 1, x_9);
x_11 = lean_box(0);
x_12 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_12, 0, x_2);
lean_ctor_set(x_12, 1, x_3);
lean_ctor_set(x_12, 2, x_11);
lean_ctor_set(x_12, 3, x_10);
return x_12;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_mkTargetDecl___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
lean_inc(x_2);
x_6 = lean_alloc_closure((void*)(l_Lake_DSL_mkTargetDecl___lam__0___boxed), 11, 3);
lean_closure_set(x_6, 0, x_5);
lean_closure_set(x_6, 1, x_3);
lean_closure_set(x_6, 2, x_2);
x_7 = lean_alloc_closure((void*)(l_Lake_formatQuery___boxed), 4, 2);
lean_closure_set(x_7, 0, lean_box(0));
lean_closure_set(x_7, 1, x_4);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_6);
lean_ctor_set(x_8, 1, x_7);
x_9 = lean_box(0);
x_10 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_10, 0, x_1);
lean_ctor_set(x_10, 1, x_2);
lean_ctor_set(x_10, 2, x_9);
lean_ctor_set(x_10, 3, x_8);
return x_10;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("definition", 10, 10);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("def", 3, 3);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("configDecl", 10, 10);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__2;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__2;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ConfigDecl", 10, 10);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__5;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__5;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__5;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__8;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("proj", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(".", 1, 1);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("toConfigDecl", 12, 12);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__12;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__12;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__15() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("targetCommand", 13, 13);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__15;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__17() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ill-formed target declaration", 29, 29);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__18() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lake.DSL.mkTargetDecl", 21, 21);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__19() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__18;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__20() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("mkTargetDecl", 12, 12);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__21() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__20;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__22() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("«target»", 10, 8);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__23() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__22;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__24() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("target", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__25() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__24;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__26() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("familyDef", 9, 9);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__27() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__26;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__28() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("family_def", 10, 10);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__29() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("CustomOut", 9, 9);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__30() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__29;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__31() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__29;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__32() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__29;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__33() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__32;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__34() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__33;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__35() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("tuple", 5, 5);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__36() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("nameConst", 9, 9);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__37() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__36;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__38() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("__name__", 8, 8);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__39() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ill-formed target signature", 27, 27);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__40() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("identOrStr", 10, 10);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__41() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__40;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__42() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ident", 5, 5);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__43() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__42;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_90; uint8_t x_91; 
x_90 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__16;
lean_inc(x_1);
x_91 = l_Lean_Syntax_isOfKind(x_1, x_90);
if (x_91 == 0)
{
lean_object* x_92; lean_object* x_93; 
x_92 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__17;
x_93 = l_Lean_Macro_throwErrorAt___redArg(x_1, x_92, x_2, x_3);
lean_dec(x_1);
return x_93;
}
else
{
lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_474; lean_object* x_481; 
x_94 = lean_unsigned_to_nat(0u);
x_95 = l_Lean_Syntax_getArg(x_1, x_94);
x_96 = lean_unsigned_to_nat(1u);
x_97 = l_Lean_Syntax_getArg(x_1, x_96);
x_98 = lean_unsigned_to_nat(2u);
x_178 = l_Lean_Syntax_getArg(x_1, x_98);
x_399 = lean_unsigned_to_nat(3u);
x_400 = l_Lean_Syntax_getArg(x_1, x_399);
lean_dec(x_1);
x_449 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__68;
x_481 = l_Lean_Syntax_getOptional_x3f(x_97);
lean_dec(x_97);
if (lean_obj_tag(x_481) == 0)
{
lean_object* x_482; 
x_482 = lean_box(0);
x_474 = x_482;
goto block_480;
}
else
{
uint8_t x_483; 
x_483 = !lean_is_exclusive(x_481);
if (x_483 == 0)
{
x_474 = x_481;
goto block_480;
}
else
{
lean_object* x_484; lean_object* x_485; 
x_484 = lean_ctor_get(x_481, 0);
lean_inc(x_484);
lean_dec(x_481);
x_485 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_485, 0, x_484);
x_474 = x_485;
goto block_480;
}
}
block_177:
{
lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; 
lean_inc_ref(x_126);
x_132 = l_Array_append___redArg(x_126, x_131);
lean_dec_ref(x_131);
lean_inc(x_124);
lean_inc(x_121);
x_133 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_133, 0, x_121);
lean_ctor_set(x_133, 1, x_124);
lean_ctor_set(x_133, 2, x_132);
lean_inc_n(x_125, 6);
lean_inc(x_119);
lean_inc(x_121);
x_134 = l_Lean_Syntax_node7(x_121, x_119, x_133, x_125, x_125, x_125, x_125, x_125, x_125);
x_135 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__9;
lean_inc_ref(x_122);
lean_inc_ref(x_128);
lean_inc_ref(x_129);
x_136 = l_Lean_Name_mkStr4(x_129, x_128, x_122, x_135);
lean_inc(x_121);
x_137 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_137, 0, x_121);
lean_ctor_set(x_137, 1, x_135);
x_138 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__10;
lean_inc_ref(x_122);
lean_inc_ref(x_128);
lean_inc_ref(x_129);
x_139 = l_Lean_Name_mkStr4(x_129, x_128, x_122, x_138);
x_140 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__11;
x_141 = lean_box(2);
lean_inc(x_124);
x_142 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_142, 0, x_141);
lean_ctor_set(x_142, 1, x_124);
lean_ctor_set(x_142, 2, x_140);
x_143 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__12;
lean_inc(x_120);
x_144 = lean_array_push(x_143, x_120);
x_145 = lean_array_push(x_144, x_142);
lean_inc(x_139);
x_146 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_146, 0, x_141);
lean_ctor_set(x_146, 1, x_139);
lean_ctor_set(x_146, 2, x_145);
x_147 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__13;
lean_inc_ref(x_122);
lean_inc_ref(x_128);
lean_inc_ref(x_129);
x_148 = l_Lean_Name_mkStr4(x_129, x_128, x_122, x_147);
lean_inc_n(x_125, 2);
lean_inc(x_148);
lean_inc(x_121);
x_149 = l_Lean_Syntax_node2(x_121, x_148, x_125, x_125);
x_150 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__15;
lean_inc_ref(x_114);
lean_inc_ref(x_128);
lean_inc_ref(x_129);
x_151 = l_Lean_Name_mkStr4(x_129, x_128, x_114, x_150);
x_152 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__19;
x_153 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__21;
lean_inc(x_101);
lean_inc(x_113);
x_154 = l_Lean_addMacroScope(x_113, x_153, x_101);
lean_inc(x_112);
x_155 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_155, 0, x_153);
lean_ctor_set(x_155, 1, x_112);
lean_inc(x_105);
x_156 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_156, 0, x_155);
lean_ctor_set(x_156, 1, x_105);
lean_inc(x_121);
x_157 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_157, 0, x_121);
lean_ctor_set(x_157, 1, x_152);
lean_ctor_set(x_157, 2, x_154);
lean_ctor_set(x_157, 3, x_156);
x_158 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__21;
lean_inc_ref(x_114);
lean_inc_ref(x_128);
lean_inc_ref(x_129);
x_159 = l_Lean_Name_mkStr4(x_129, x_128, x_114, x_158);
x_160 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__31;
lean_inc_ref(x_114);
lean_inc_ref(x_128);
lean_inc_ref(x_129);
x_161 = l_Lean_Name_mkStr4(x_129, x_128, x_114, x_160);
lean_inc(x_121);
x_162 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_162, 0, x_121);
lean_ctor_set(x_162, 1, x_160);
x_163 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__32;
lean_inc_ref(x_114);
lean_inc_ref(x_128);
lean_inc_ref(x_129);
x_164 = l_Lean_Name_mkStr4(x_129, x_128, x_114, x_163);
lean_inc(x_124);
lean_inc(x_121);
x_165 = l_Lean_Syntax_node1(x_121, x_124, x_107);
x_166 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__33;
lean_inc(x_121);
x_167 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_167, 0, x_121);
lean_ctor_set(x_167, 1, x_166);
lean_inc(x_125);
lean_inc(x_121);
x_168 = l_Lean_Syntax_node4(x_121, x_164, x_165, x_125, x_167, x_115);
lean_inc(x_121);
x_169 = l_Lean_Syntax_node2(x_121, x_161, x_162, x_168);
lean_inc(x_121);
x_170 = l_Lean_Syntax_node3(x_121, x_159, x_103, x_169, x_108);
lean_inc(x_124);
lean_inc(x_121);
x_171 = l_Lean_Syntax_node4(x_121, x_124, x_130, x_127, x_109, x_170);
lean_inc(x_121);
x_172 = l_Lean_Syntax_node2(x_121, x_151, x_157, x_171);
lean_inc_n(x_125, 2);
lean_inc(x_121);
x_173 = l_Lean_Syntax_node2(x_121, x_99, x_125, x_125);
if (lean_obj_tag(x_111) == 1)
{
lean_object* x_174; lean_object* x_175; 
x_174 = lean_ctor_get(x_111, 0);
lean_inc(x_174);
lean_dec_ref(x_111);
x_175 = l_Array_mkArray1___redArg(x_174);
x_4 = x_100;
x_5 = x_101;
x_6 = x_102;
x_7 = x_104;
x_8 = x_105;
x_9 = x_146;
x_10 = x_106;
x_11 = x_149;
x_12 = x_110;
x_13 = x_112;
x_14 = x_173;
x_15 = x_113;
x_16 = x_114;
x_17 = x_148;
x_18 = x_137;
x_19 = x_134;
x_20 = x_117;
x_21 = x_116;
x_22 = x_118;
x_23 = x_119;
x_24 = x_120;
x_25 = x_172;
x_26 = x_139;
x_27 = x_136;
x_28 = x_121;
x_29 = x_122;
x_30 = x_123;
x_31 = x_124;
x_32 = x_125;
x_33 = x_126;
x_34 = x_128;
x_35 = x_129;
x_36 = x_175;
goto block_89;
}
else
{
lean_object* x_176; 
lean_dec(x_111);
x_176 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__35;
x_4 = x_100;
x_5 = x_101;
x_6 = x_102;
x_7 = x_104;
x_8 = x_105;
x_9 = x_146;
x_10 = x_106;
x_11 = x_149;
x_12 = x_110;
x_13 = x_112;
x_14 = x_173;
x_15 = x_113;
x_16 = x_114;
x_17 = x_148;
x_18 = x_137;
x_19 = x_134;
x_20 = x_117;
x_21 = x_116;
x_22 = x_118;
x_23 = x_119;
x_24 = x_120;
x_25 = x_172;
x_26 = x_139;
x_27 = x_136;
x_28 = x_121;
x_29 = x_122;
x_30 = x_123;
x_31 = x_124;
x_32 = x_125;
x_33 = x_126;
x_34 = x_128;
x_35 = x_129;
x_36 = x_176;
goto block_89;
}
}
block_398:
{
uint8_t x_195; 
x_195 = !lean_is_exclusive(x_193);
if (x_195 == 0)
{
lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; 
x_196 = lean_ctor_get(x_193, 1);
x_197 = lean_ctor_get(x_193, 2);
x_198 = lean_ctor_get(x_193, 5);
x_199 = l_Lean_replaceRef(x_178, x_198);
lean_dec(x_198);
lean_dec(x_178);
lean_inc(x_199);
lean_inc(x_197);
lean_inc(x_196);
lean_ctor_set(x_193, 5, x_199);
x_200 = l_Lake_DSL_expandOptSimpleBinder(x_185, x_193, x_194);
if (lean_obj_tag(x_200) == 0)
{
lean_object* x_201; lean_object* x_202; uint8_t x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; 
x_201 = lean_ctor_get(x_200, 0);
lean_inc(x_201);
x_202 = lean_ctor_get(x_200, 1);
lean_inc(x_202);
lean_dec_ref(x_200);
x_203 = 0;
x_204 = l_Lean_SourceInfo_fromRef(x_199, x_203);
lean_dec(x_199);
x_205 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__42;
lean_inc_ref(x_188);
lean_inc_ref(x_189);
lean_inc_ref(x_190);
x_206 = l_Lean_Name_mkStr4(x_190, x_189, x_188, x_205);
x_207 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__43;
lean_inc_ref(x_188);
lean_inc_ref(x_189);
lean_inc_ref(x_190);
x_208 = l_Lean_Name_mkStr4(x_190, x_189, x_188, x_207);
x_209 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__45;
x_210 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__46;
lean_inc(x_204);
x_211 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_211, 0, x_204);
lean_ctor_set(x_211, 1, x_209);
lean_ctor_set(x_211, 2, x_210);
lean_inc_ref(x_211);
lean_inc(x_204);
x_212 = l_Lean_Syntax_node1(x_204, x_208, x_211);
x_213 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__47;
x_214 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__48;
lean_inc_ref(x_189);
lean_inc_ref(x_190);
x_215 = l_Lean_Name_mkStr4(x_190, x_189, x_213, x_214);
x_216 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__23;
x_217 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__25;
lean_inc(x_197);
lean_inc(x_196);
x_218 = l_Lean_addMacroScope(x_196, x_217, x_197);
x_219 = lean_box(0);
lean_inc(x_204);
x_220 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_220, 0, x_204);
lean_ctor_set(x_220, 1, x_216);
lean_ctor_set(x_220, 2, x_218);
lean_ctor_set(x_220, 3, x_219);
lean_inc_ref(x_211);
lean_inc(x_204);
x_221 = l_Lean_Syntax_node2(x_204, x_215, x_220, x_211);
lean_inc(x_204);
x_222 = l_Lean_Syntax_node2(x_204, x_206, x_212, x_221);
x_223 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__53;
x_224 = lean_array_push(x_223, x_222);
x_225 = l_Lake_DSL_expandAttrs(x_187);
x_226 = l_Array_append___redArg(x_224, x_225);
lean_dec_ref(x_225);
x_227 = l_Lean_TSyntax_getId(x_182);
lean_inc(x_182);
x_228 = l_Lake_Name_quoteFrom(x_182, x_227, x_203);
x_229 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__27;
x_230 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__28;
lean_inc(x_204);
x_231 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_231, 0, x_204);
lean_ctor_set(x_231, 1, x_230);
x_232 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__39;
lean_inc(x_204);
x_233 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_233, 0, x_204);
lean_ctor_set(x_233, 1, x_232);
x_234 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__30;
x_235 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__31;
lean_inc(x_197);
lean_inc(x_196);
x_236 = l_Lean_addMacroScope(x_196, x_235, x_197);
x_237 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__34;
lean_inc(x_204);
x_238 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_238, 0, x_204);
lean_ctor_set(x_238, 1, x_234);
lean_ctor_set(x_238, 2, x_236);
lean_ctor_set(x_238, 3, x_237);
x_239 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__35;
lean_inc_ref(x_188);
lean_inc_ref(x_189);
lean_inc_ref(x_190);
x_240 = l_Lean_Name_mkStr4(x_190, x_189, x_188, x_239);
x_241 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__22;
lean_inc_ref(x_188);
lean_inc_ref(x_189);
lean_inc_ref(x_190);
x_242 = l_Lean_Name_mkStr4(x_190, x_189, x_188, x_241);
x_243 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__23;
lean_inc(x_204);
x_244 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_244, 0, x_204);
lean_ctor_set(x_244, 1, x_243);
x_245 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__25;
x_246 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__27;
x_247 = lean_box(0);
lean_inc(x_197);
lean_inc(x_196);
x_248 = l_Lean_addMacroScope(x_196, x_247, x_197);
x_249 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__29;
lean_inc_ref(x_186);
lean_inc_ref(x_189);
lean_inc_ref(x_190);
x_250 = l_Lean_Name_mkStr3(x_190, x_189, x_186);
x_251 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_251, 0, x_250);
x_252 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__30;
lean_inc_ref(x_186);
lean_inc_ref(x_190);
x_253 = l_Lean_Name_mkStr3(x_190, x_252, x_186);
x_254 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_254, 0, x_253);
lean_inc_ref(x_190);
x_255 = l_Lean_Name_mkStr2(x_190, x_252);
x_256 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_256, 0, x_255);
lean_inc_ref(x_189);
lean_inc_ref(x_190);
x_257 = l_Lean_Name_mkStr2(x_190, x_189);
x_258 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_258, 0, x_257);
lean_inc_ref(x_190);
x_259 = l_Lean_Name_mkStr1(x_190);
x_260 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_260, 0, x_259);
x_261 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_261, 0, x_260);
lean_ctor_set(x_261, 1, x_219);
x_262 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_262, 0, x_258);
lean_ctor_set(x_262, 1, x_261);
x_263 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_263, 0, x_256);
lean_ctor_set(x_263, 1, x_262);
x_264 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_264, 0, x_254);
lean_ctor_set(x_264, 1, x_263);
x_265 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_265, 0, x_251);
lean_ctor_set(x_265, 1, x_264);
x_266 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_266, 0, x_249);
lean_ctor_set(x_266, 1, x_265);
lean_inc(x_204);
x_267 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_267, 0, x_204);
lean_ctor_set(x_267, 1, x_246);
lean_ctor_set(x_267, 2, x_248);
lean_ctor_set(x_267, 3, x_266);
lean_inc(x_204);
x_268 = l_Lean_Syntax_node1(x_204, x_245, x_267);
lean_inc(x_204);
x_269 = l_Lean_Syntax_node2(x_204, x_242, x_244, x_268);
x_270 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__37;
x_271 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__38;
lean_inc(x_204);
x_272 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_272, 0, x_204);
lean_ctor_set(x_272, 1, x_271);
lean_inc(x_204);
x_273 = l_Lean_Syntax_node1(x_204, x_270, x_272);
x_274 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__7;
lean_inc(x_204);
x_275 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_275, 0, x_204);
lean_ctor_set(x_275, 1, x_274);
lean_inc(x_228);
lean_inc(x_204);
x_276 = l_Lean_Syntax_node1(x_204, x_209, x_228);
lean_inc(x_273);
lean_inc(x_204);
x_277 = l_Lean_Syntax_node3(x_204, x_209, x_273, x_275, x_276);
x_278 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__34;
lean_inc(x_204);
x_279 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_279, 0, x_204);
lean_ctor_set(x_279, 1, x_278);
lean_inc_ref(x_279);
lean_inc(x_269);
lean_inc(x_204);
x_280 = l_Lean_Syntax_node3(x_204, x_240, x_269, x_277, x_279);
x_281 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__14;
lean_inc(x_204);
x_282 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_282, 0, x_204);
lean_ctor_set(x_282, 1, x_281);
lean_inc(x_191);
lean_inc_ref(x_282);
lean_inc_ref(x_233);
lean_inc(x_182);
lean_inc_ref(x_211);
lean_inc(x_204);
x_283 = l_Lean_Syntax_node8(x_204, x_229, x_211, x_231, x_182, x_233, x_238, x_280, x_282, x_191);
x_284 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__40;
lean_inc_ref(x_186);
lean_inc_ref(x_189);
lean_inc_ref(x_190);
x_285 = l_Lean_Name_mkStr4(x_190, x_189, x_186, x_284);
x_286 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__41;
lean_inc_ref(x_186);
lean_inc_ref(x_189);
lean_inc_ref(x_190);
x_287 = l_Lean_Name_mkStr4(x_190, x_189, x_186, x_286);
if (lean_obj_tag(x_183) == 1)
{
lean_object* x_288; lean_object* x_289; 
x_288 = lean_ctor_get(x_183, 0);
lean_inc(x_288);
lean_dec_ref(x_183);
x_289 = l_Array_mkArray1___redArg(x_288);
x_99 = x_179;
x_100 = x_180;
x_101 = x_197;
x_102 = x_283;
x_103 = x_269;
x_104 = x_226;
x_105 = x_219;
x_106 = x_184;
x_107 = x_201;
x_108 = x_279;
x_109 = x_228;
x_110 = x_285;
x_111 = x_192;
x_112 = x_219;
x_113 = x_196;
x_114 = x_188;
x_115 = x_181;
x_116 = x_282;
x_117 = x_233;
x_118 = x_274;
x_119 = x_287;
x_120 = x_182;
x_121 = x_204;
x_122 = x_186;
x_123 = x_202;
x_124 = x_209;
x_125 = x_211;
x_126 = x_210;
x_127 = x_273;
x_128 = x_189;
x_129 = x_190;
x_130 = x_191;
x_131 = x_289;
goto block_177;
}
else
{
lean_object* x_290; 
lean_dec(x_183);
x_290 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__35;
x_99 = x_179;
x_100 = x_180;
x_101 = x_197;
x_102 = x_283;
x_103 = x_269;
x_104 = x_226;
x_105 = x_219;
x_106 = x_184;
x_107 = x_201;
x_108 = x_279;
x_109 = x_228;
x_110 = x_285;
x_111 = x_192;
x_112 = x_219;
x_113 = x_196;
x_114 = x_188;
x_115 = x_181;
x_116 = x_282;
x_117 = x_233;
x_118 = x_274;
x_119 = x_287;
x_120 = x_182;
x_121 = x_204;
x_122 = x_186;
x_123 = x_202;
x_124 = x_209;
x_125 = x_211;
x_126 = x_210;
x_127 = x_273;
x_128 = x_189;
x_129 = x_190;
x_130 = x_191;
x_131 = x_290;
goto block_177;
}
}
else
{
uint8_t x_291; 
lean_dec(x_199);
lean_dec(x_197);
lean_dec(x_196);
lean_dec(x_192);
lean_dec(x_191);
lean_dec_ref(x_190);
lean_dec_ref(x_189);
lean_dec_ref(x_188);
lean_dec(x_187);
lean_dec_ref(x_186);
lean_dec(x_184);
lean_dec(x_183);
lean_dec(x_182);
lean_dec(x_181);
lean_dec(x_180);
lean_dec(x_179);
x_291 = !lean_is_exclusive(x_200);
if (x_291 == 0)
{
return x_200;
}
else
{
lean_object* x_292; lean_object* x_293; lean_object* x_294; 
x_292 = lean_ctor_get(x_200, 0);
x_293 = lean_ctor_get(x_200, 1);
lean_inc(x_293);
lean_inc(x_292);
lean_dec(x_200);
x_294 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_294, 0, x_292);
lean_ctor_set(x_294, 1, x_293);
return x_294;
}
}
}
else
{
lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; 
x_295 = lean_ctor_get(x_193, 0);
x_296 = lean_ctor_get(x_193, 1);
x_297 = lean_ctor_get(x_193, 2);
x_298 = lean_ctor_get(x_193, 3);
x_299 = lean_ctor_get(x_193, 4);
x_300 = lean_ctor_get(x_193, 5);
lean_inc(x_300);
lean_inc(x_299);
lean_inc(x_298);
lean_inc(x_297);
lean_inc(x_296);
lean_inc(x_295);
lean_dec(x_193);
x_301 = l_Lean_replaceRef(x_178, x_300);
lean_dec(x_300);
lean_dec(x_178);
lean_inc(x_301);
lean_inc(x_297);
lean_inc(x_296);
x_302 = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(x_302, 0, x_295);
lean_ctor_set(x_302, 1, x_296);
lean_ctor_set(x_302, 2, x_297);
lean_ctor_set(x_302, 3, x_298);
lean_ctor_set(x_302, 4, x_299);
lean_ctor_set(x_302, 5, x_301);
x_303 = l_Lake_DSL_expandOptSimpleBinder(x_185, x_302, x_194);
if (lean_obj_tag(x_303) == 0)
{
lean_object* x_304; lean_object* x_305; uint8_t x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; 
x_304 = lean_ctor_get(x_303, 0);
lean_inc(x_304);
x_305 = lean_ctor_get(x_303, 1);
lean_inc(x_305);
lean_dec_ref(x_303);
x_306 = 0;
x_307 = l_Lean_SourceInfo_fromRef(x_301, x_306);
lean_dec(x_301);
x_308 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__42;
lean_inc_ref(x_188);
lean_inc_ref(x_189);
lean_inc_ref(x_190);
x_309 = l_Lean_Name_mkStr4(x_190, x_189, x_188, x_308);
x_310 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__43;
lean_inc_ref(x_188);
lean_inc_ref(x_189);
lean_inc_ref(x_190);
x_311 = l_Lean_Name_mkStr4(x_190, x_189, x_188, x_310);
x_312 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__45;
x_313 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__46;
lean_inc(x_307);
x_314 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_314, 0, x_307);
lean_ctor_set(x_314, 1, x_312);
lean_ctor_set(x_314, 2, x_313);
lean_inc_ref(x_314);
lean_inc(x_307);
x_315 = l_Lean_Syntax_node1(x_307, x_311, x_314);
x_316 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__47;
x_317 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__48;
lean_inc_ref(x_189);
lean_inc_ref(x_190);
x_318 = l_Lean_Name_mkStr4(x_190, x_189, x_316, x_317);
x_319 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__23;
x_320 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__25;
lean_inc(x_297);
lean_inc(x_296);
x_321 = l_Lean_addMacroScope(x_296, x_320, x_297);
x_322 = lean_box(0);
lean_inc(x_307);
x_323 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_323, 0, x_307);
lean_ctor_set(x_323, 1, x_319);
lean_ctor_set(x_323, 2, x_321);
lean_ctor_set(x_323, 3, x_322);
lean_inc_ref(x_314);
lean_inc(x_307);
x_324 = l_Lean_Syntax_node2(x_307, x_318, x_323, x_314);
lean_inc(x_307);
x_325 = l_Lean_Syntax_node2(x_307, x_309, x_315, x_324);
x_326 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__53;
x_327 = lean_array_push(x_326, x_325);
x_328 = l_Lake_DSL_expandAttrs(x_187);
x_329 = l_Array_append___redArg(x_327, x_328);
lean_dec_ref(x_328);
x_330 = l_Lean_TSyntax_getId(x_182);
lean_inc(x_182);
x_331 = l_Lake_Name_quoteFrom(x_182, x_330, x_306);
x_332 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__27;
x_333 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__28;
lean_inc(x_307);
x_334 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_334, 0, x_307);
lean_ctor_set(x_334, 1, x_333);
x_335 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__39;
lean_inc(x_307);
x_336 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_336, 0, x_307);
lean_ctor_set(x_336, 1, x_335);
x_337 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__30;
x_338 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__31;
lean_inc(x_297);
lean_inc(x_296);
x_339 = l_Lean_addMacroScope(x_296, x_338, x_297);
x_340 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__34;
lean_inc(x_307);
x_341 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_341, 0, x_307);
lean_ctor_set(x_341, 1, x_337);
lean_ctor_set(x_341, 2, x_339);
lean_ctor_set(x_341, 3, x_340);
x_342 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__35;
lean_inc_ref(x_188);
lean_inc_ref(x_189);
lean_inc_ref(x_190);
x_343 = l_Lean_Name_mkStr4(x_190, x_189, x_188, x_342);
x_344 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__22;
lean_inc_ref(x_188);
lean_inc_ref(x_189);
lean_inc_ref(x_190);
x_345 = l_Lean_Name_mkStr4(x_190, x_189, x_188, x_344);
x_346 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__23;
lean_inc(x_307);
x_347 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_347, 0, x_307);
lean_ctor_set(x_347, 1, x_346);
x_348 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__25;
x_349 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__27;
x_350 = lean_box(0);
lean_inc(x_297);
lean_inc(x_296);
x_351 = l_Lean_addMacroScope(x_296, x_350, x_297);
x_352 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__29;
lean_inc_ref(x_186);
lean_inc_ref(x_189);
lean_inc_ref(x_190);
x_353 = l_Lean_Name_mkStr3(x_190, x_189, x_186);
x_354 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_354, 0, x_353);
x_355 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__30;
lean_inc_ref(x_186);
lean_inc_ref(x_190);
x_356 = l_Lean_Name_mkStr3(x_190, x_355, x_186);
x_357 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_357, 0, x_356);
lean_inc_ref(x_190);
x_358 = l_Lean_Name_mkStr2(x_190, x_355);
x_359 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_359, 0, x_358);
lean_inc_ref(x_189);
lean_inc_ref(x_190);
x_360 = l_Lean_Name_mkStr2(x_190, x_189);
x_361 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_361, 0, x_360);
lean_inc_ref(x_190);
x_362 = l_Lean_Name_mkStr1(x_190);
x_363 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_363, 0, x_362);
x_364 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_364, 0, x_363);
lean_ctor_set(x_364, 1, x_322);
x_365 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_365, 0, x_361);
lean_ctor_set(x_365, 1, x_364);
x_366 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_366, 0, x_359);
lean_ctor_set(x_366, 1, x_365);
x_367 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_367, 0, x_357);
lean_ctor_set(x_367, 1, x_366);
x_368 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_368, 0, x_354);
lean_ctor_set(x_368, 1, x_367);
x_369 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_369, 0, x_352);
lean_ctor_set(x_369, 1, x_368);
lean_inc(x_307);
x_370 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_370, 0, x_307);
lean_ctor_set(x_370, 1, x_349);
lean_ctor_set(x_370, 2, x_351);
lean_ctor_set(x_370, 3, x_369);
lean_inc(x_307);
x_371 = l_Lean_Syntax_node1(x_307, x_348, x_370);
lean_inc(x_307);
x_372 = l_Lean_Syntax_node2(x_307, x_345, x_347, x_371);
x_373 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__37;
x_374 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__38;
lean_inc(x_307);
x_375 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_375, 0, x_307);
lean_ctor_set(x_375, 1, x_374);
lean_inc(x_307);
x_376 = l_Lean_Syntax_node1(x_307, x_373, x_375);
x_377 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__7;
lean_inc(x_307);
x_378 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_378, 0, x_307);
lean_ctor_set(x_378, 1, x_377);
lean_inc(x_331);
lean_inc(x_307);
x_379 = l_Lean_Syntax_node1(x_307, x_312, x_331);
lean_inc(x_376);
lean_inc(x_307);
x_380 = l_Lean_Syntax_node3(x_307, x_312, x_376, x_378, x_379);
x_381 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__34;
lean_inc(x_307);
x_382 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_382, 0, x_307);
lean_ctor_set(x_382, 1, x_381);
lean_inc_ref(x_382);
lean_inc(x_372);
lean_inc(x_307);
x_383 = l_Lean_Syntax_node3(x_307, x_343, x_372, x_380, x_382);
x_384 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__14;
lean_inc(x_307);
x_385 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_385, 0, x_307);
lean_ctor_set(x_385, 1, x_384);
lean_inc(x_191);
lean_inc_ref(x_385);
lean_inc_ref(x_336);
lean_inc(x_182);
lean_inc_ref(x_314);
lean_inc(x_307);
x_386 = l_Lean_Syntax_node8(x_307, x_332, x_314, x_334, x_182, x_336, x_341, x_383, x_385, x_191);
x_387 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__40;
lean_inc_ref(x_186);
lean_inc_ref(x_189);
lean_inc_ref(x_190);
x_388 = l_Lean_Name_mkStr4(x_190, x_189, x_186, x_387);
x_389 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__41;
lean_inc_ref(x_186);
lean_inc_ref(x_189);
lean_inc_ref(x_190);
x_390 = l_Lean_Name_mkStr4(x_190, x_189, x_186, x_389);
if (lean_obj_tag(x_183) == 1)
{
lean_object* x_391; lean_object* x_392; 
x_391 = lean_ctor_get(x_183, 0);
lean_inc(x_391);
lean_dec_ref(x_183);
x_392 = l_Array_mkArray1___redArg(x_391);
x_99 = x_179;
x_100 = x_180;
x_101 = x_297;
x_102 = x_386;
x_103 = x_372;
x_104 = x_329;
x_105 = x_322;
x_106 = x_184;
x_107 = x_304;
x_108 = x_382;
x_109 = x_331;
x_110 = x_388;
x_111 = x_192;
x_112 = x_322;
x_113 = x_296;
x_114 = x_188;
x_115 = x_181;
x_116 = x_385;
x_117 = x_336;
x_118 = x_377;
x_119 = x_390;
x_120 = x_182;
x_121 = x_307;
x_122 = x_186;
x_123 = x_305;
x_124 = x_312;
x_125 = x_314;
x_126 = x_313;
x_127 = x_376;
x_128 = x_189;
x_129 = x_190;
x_130 = x_191;
x_131 = x_392;
goto block_177;
}
else
{
lean_object* x_393; 
lean_dec(x_183);
x_393 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__35;
x_99 = x_179;
x_100 = x_180;
x_101 = x_297;
x_102 = x_386;
x_103 = x_372;
x_104 = x_329;
x_105 = x_322;
x_106 = x_184;
x_107 = x_304;
x_108 = x_382;
x_109 = x_331;
x_110 = x_388;
x_111 = x_192;
x_112 = x_322;
x_113 = x_296;
x_114 = x_188;
x_115 = x_181;
x_116 = x_385;
x_117 = x_336;
x_118 = x_377;
x_119 = x_390;
x_120 = x_182;
x_121 = x_307;
x_122 = x_186;
x_123 = x_305;
x_124 = x_312;
x_125 = x_314;
x_126 = x_313;
x_127 = x_376;
x_128 = x_189;
x_129 = x_190;
x_130 = x_191;
x_131 = x_393;
goto block_177;
}
}
else
{
lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; 
lean_dec(x_301);
lean_dec(x_297);
lean_dec(x_296);
lean_dec(x_192);
lean_dec(x_191);
lean_dec_ref(x_190);
lean_dec_ref(x_189);
lean_dec_ref(x_188);
lean_dec(x_187);
lean_dec_ref(x_186);
lean_dec(x_184);
lean_dec(x_183);
lean_dec(x_182);
lean_dec(x_181);
lean_dec(x_180);
lean_dec(x_179);
x_394 = lean_ctor_get(x_303, 0);
lean_inc(x_394);
x_395 = lean_ctor_get(x_303, 1);
lean_inc(x_395);
if (lean_is_exclusive(x_303)) {
 lean_ctor_release(x_303, 0);
 lean_ctor_release(x_303, 1);
 x_396 = x_303;
} else {
 lean_dec_ref(x_303);
 x_396 = lean_box(0);
}
if (lean_is_scalar(x_396)) {
 x_397 = lean_alloc_ctor(1, 2, 0);
} else {
 x_397 = x_396;
}
lean_ctor_set(x_397, 0, x_394);
lean_ctor_set(x_397, 1, x_395);
return x_397;
}
}
}
block_448:
{
lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; uint8_t x_412; 
x_407 = l_Lean_Syntax_getArg(x_400, x_98);
x_408 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54;
x_409 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55;
x_410 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56;
x_411 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__58;
lean_inc(x_407);
x_412 = l_Lean_Syntax_isOfKind(x_407, x_411);
if (x_412 == 0)
{
lean_object* x_413; lean_object* x_414; 
lean_dec(x_407);
lean_dec(x_404);
lean_dec(x_403);
lean_dec(x_402);
lean_dec(x_401);
lean_dec(x_178);
x_413 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__39;
x_414 = l_Lean_Macro_throwErrorAt___redArg(x_400, x_413, x_405, x_406);
lean_dec(x_400);
return x_414;
}
else
{
lean_object* x_415; lean_object* x_416; lean_object* x_417; uint8_t x_418; 
x_415 = l_Lean_Syntax_getArg(x_400, x_399);
x_416 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__59;
x_417 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__61;
lean_inc(x_415);
x_418 = l_Lean_Syntax_isOfKind(x_415, x_417);
if (x_418 == 0)
{
lean_object* x_419; lean_object* x_420; 
lean_dec(x_415);
lean_dec(x_407);
lean_dec(x_404);
lean_dec(x_403);
lean_dec(x_402);
lean_dec(x_401);
lean_dec(x_178);
x_419 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__39;
x_420 = l_Lean_Macro_throwErrorAt___redArg(x_400, x_419, x_405, x_406);
lean_dec(x_400);
return x_420;
}
else
{
lean_object* x_421; lean_object* x_422; uint8_t x_423; 
x_421 = l_Lean_Syntax_getArg(x_415, x_98);
x_422 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__64;
lean_inc(x_421);
x_423 = l_Lean_Syntax_isOfKind(x_421, x_422);
if (x_423 == 0)
{
lean_object* x_424; lean_object* x_425; 
lean_dec(x_421);
lean_dec(x_415);
lean_dec(x_407);
lean_dec(x_404);
lean_dec(x_403);
lean_dec(x_402);
lean_dec(x_401);
lean_dec(x_178);
x_424 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__39;
x_425 = l_Lean_Macro_throwErrorAt___redArg(x_400, x_424, x_405, x_406);
lean_dec(x_400);
return x_425;
}
else
{
lean_object* x_426; uint8_t x_427; 
x_426 = l_Lean_Syntax_getArg(x_421, x_94);
x_427 = l_Lean_Syntax_matchesNull(x_426, x_94);
if (x_427 == 0)
{
lean_object* x_428; lean_object* x_429; 
lean_dec(x_421);
lean_dec(x_415);
lean_dec(x_407);
lean_dec(x_404);
lean_dec(x_403);
lean_dec(x_402);
lean_dec(x_401);
lean_dec(x_178);
x_428 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__39;
x_429 = l_Lean_Macro_throwErrorAt___redArg(x_400, x_428, x_405, x_406);
lean_dec(x_400);
return x_429;
}
else
{
lean_object* x_430; uint8_t x_431; 
x_430 = l_Lean_Syntax_getArg(x_421, x_96);
lean_dec(x_421);
x_431 = l_Lean_Syntax_matchesNull(x_430, x_94);
if (x_431 == 0)
{
lean_object* x_432; lean_object* x_433; 
lean_dec(x_415);
lean_dec(x_407);
lean_dec(x_404);
lean_dec(x_403);
lean_dec(x_402);
lean_dec(x_401);
lean_dec(x_178);
x_432 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__39;
x_433 = l_Lean_Macro_throwErrorAt___redArg(x_400, x_432, x_405, x_406);
lean_dec(x_400);
return x_433;
}
else
{
lean_object* x_434; lean_object* x_435; lean_object* x_436; uint8_t x_437; 
x_434 = l_Lean_Syntax_getArg(x_407, x_96);
lean_dec(x_407);
x_435 = l_Lean_Syntax_getArg(x_415, x_96);
x_436 = l_Lean_Syntax_getArg(x_415, x_399);
lean_dec(x_415);
x_437 = l_Lean_Syntax_isNone(x_436);
if (x_437 == 0)
{
uint8_t x_438; 
lean_inc(x_436);
x_438 = l_Lean_Syntax_matchesNull(x_436, x_96);
if (x_438 == 0)
{
lean_object* x_439; lean_object* x_440; 
lean_dec(x_436);
lean_dec(x_435);
lean_dec(x_434);
lean_dec(x_404);
lean_dec(x_403);
lean_dec(x_402);
lean_dec(x_401);
lean_dec(x_178);
x_439 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__39;
x_440 = l_Lean_Macro_throwErrorAt___redArg(x_400, x_439, x_405, x_406);
lean_dec(x_400);
return x_440;
}
else
{
lean_object* x_441; lean_object* x_442; uint8_t x_443; 
x_441 = l_Lean_Syntax_getArg(x_436, x_94);
lean_dec(x_436);
x_442 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__66;
lean_inc(x_441);
x_443 = l_Lean_Syntax_isOfKind(x_441, x_442);
if (x_443 == 0)
{
lean_object* x_444; lean_object* x_445; 
lean_dec(x_441);
lean_dec(x_435);
lean_dec(x_434);
lean_dec(x_404);
lean_dec(x_403);
lean_dec(x_402);
lean_dec(x_401);
lean_dec(x_178);
x_444 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__39;
x_445 = l_Lean_Macro_throwErrorAt___redArg(x_400, x_444, x_405, x_406);
lean_dec(x_400);
return x_445;
}
else
{
lean_object* x_446; 
lean_dec(x_400);
x_446 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_446, 0, x_441);
x_179 = x_422;
x_180 = x_411;
x_181 = x_435;
x_182 = x_403;
x_183 = x_402;
x_184 = x_417;
x_185 = x_404;
x_186 = x_416;
x_187 = x_401;
x_188 = x_410;
x_189 = x_409;
x_190 = x_408;
x_191 = x_434;
x_192 = x_446;
x_193 = x_405;
x_194 = x_406;
goto block_398;
}
}
}
else
{
lean_object* x_447; 
lean_dec(x_436);
lean_dec(x_400);
x_447 = lean_box(0);
x_179 = x_422;
x_180 = x_411;
x_181 = x_435;
x_182 = x_403;
x_183 = x_402;
x_184 = x_417;
x_185 = x_404;
x_186 = x_416;
x_187 = x_401;
x_188 = x_410;
x_189 = x_409;
x_190 = x_408;
x_191 = x_434;
x_192 = x_447;
x_193 = x_405;
x_194 = x_406;
goto block_398;
}
}
}
}
}
}
}
block_473:
{
uint8_t x_452; 
lean_inc(x_400);
x_452 = l_Lean_Syntax_isOfKind(x_400, x_449);
if (x_452 == 0)
{
lean_object* x_453; lean_object* x_454; 
lean_dec(x_451);
lean_dec(x_450);
lean_dec(x_178);
x_453 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__39;
x_454 = l_Lean_Macro_throwErrorAt___redArg(x_400, x_453, x_2, x_3);
lean_dec(x_400);
return x_454;
}
else
{
lean_object* x_455; lean_object* x_456; uint8_t x_457; 
x_455 = l_Lean_Syntax_getArg(x_400, x_94);
x_456 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__41;
lean_inc(x_455);
x_457 = l_Lean_Syntax_isOfKind(x_455, x_456);
if (x_457 == 0)
{
lean_object* x_458; lean_object* x_459; 
lean_dec(x_455);
lean_dec(x_451);
lean_dec(x_450);
lean_dec(x_178);
x_458 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__39;
x_459 = l_Lean_Macro_throwErrorAt___redArg(x_400, x_458, x_2, x_3);
lean_dec(x_400);
return x_459;
}
else
{
lean_object* x_460; lean_object* x_461; uint8_t x_462; 
x_460 = l_Lean_Syntax_getArg(x_455, x_94);
lean_dec(x_455);
x_461 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__43;
lean_inc(x_460);
x_462 = l_Lean_Syntax_isOfKind(x_460, x_461);
if (x_462 == 0)
{
lean_object* x_463; lean_object* x_464; 
lean_dec(x_460);
lean_dec(x_451);
lean_dec(x_450);
lean_dec(x_178);
x_463 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__39;
x_464 = l_Lean_Macro_throwErrorAt___redArg(x_400, x_463, x_2, x_3);
lean_dec(x_400);
return x_464;
}
else
{
lean_object* x_465; uint8_t x_466; 
x_465 = l_Lean_Syntax_getArg(x_400, x_96);
x_466 = l_Lean_Syntax_isNone(x_465);
if (x_466 == 0)
{
uint8_t x_467; 
lean_inc(x_465);
x_467 = l_Lean_Syntax_matchesNull(x_465, x_96);
if (x_467 == 0)
{
lean_object* x_468; lean_object* x_469; 
lean_dec(x_465);
lean_dec(x_460);
lean_dec(x_451);
lean_dec(x_450);
lean_dec(x_178);
x_468 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__39;
x_469 = l_Lean_Macro_throwErrorAt___redArg(x_400, x_468, x_2, x_3);
lean_dec(x_400);
return x_469;
}
else
{
lean_object* x_470; lean_object* x_471; 
x_470 = l_Lean_Syntax_getArg(x_465, x_94);
lean_dec(x_465);
x_471 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_471, 0, x_470);
x_401 = x_450;
x_402 = x_451;
x_403 = x_460;
x_404 = x_471;
x_405 = x_2;
x_406 = x_3;
goto block_448;
}
}
else
{
lean_object* x_472; 
lean_dec(x_465);
x_472 = lean_box(0);
x_401 = x_450;
x_402 = x_451;
x_403 = x_460;
x_404 = x_472;
x_405 = x_2;
x_406 = x_3;
goto block_448;
}
}
}
}
}
block_480:
{
lean_object* x_475; 
x_475 = l_Lean_Syntax_getOptional_x3f(x_95);
lean_dec(x_95);
if (lean_obj_tag(x_475) == 0)
{
lean_object* x_476; 
x_476 = lean_box(0);
x_450 = x_474;
x_451 = x_476;
goto block_473;
}
else
{
uint8_t x_477; 
x_477 = !lean_is_exclusive(x_475);
if (x_477 == 0)
{
x_450 = x_474;
x_451 = x_475;
goto block_473;
}
else
{
lean_object* x_478; lean_object* x_479; 
x_478 = lean_ctor_get(x_475, 0);
lean_inc(x_478);
lean_dec(x_475);
x_479 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_479, 0, x_478);
x_450 = x_474;
x_451 = x_479;
goto block_473;
}
}
}
}
block_89:
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; 
lean_inc_ref(x_33);
x_37 = l_Array_append___redArg(x_33, x_36);
lean_dec_ref(x_36);
lean_inc(x_31);
lean_inc(x_28);
x_38 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_38, 0, x_28);
lean_ctor_set(x_38, 1, x_31);
lean_ctor_set(x_38, 2, x_37);
lean_inc(x_14);
lean_inc(x_21);
lean_inc(x_10);
lean_inc(x_28);
x_39 = l_Lean_Syntax_node4(x_28, x_10, x_21, x_25, x_14, x_38);
lean_inc(x_28);
x_40 = l_Lean_Syntax_node4(x_28, x_27, x_18, x_9, x_11, x_39);
lean_inc(x_12);
lean_inc(x_28);
x_41 = l_Lean_Syntax_node2(x_28, x_12, x_19, x_40);
x_42 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__5;
lean_inc_ref(x_16);
lean_inc_ref(x_34);
lean_inc_ref(x_35);
x_43 = l_Lean_Name_mkStr4(x_35, x_34, x_16, x_42);
x_44 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__6;
lean_inc(x_28);
x_45 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_45, 0, x_28);
lean_ctor_set(x_45, 1, x_44);
x_46 = l_Lean_Syntax_SepArray_ofElems(x_22, x_7);
lean_dec_ref(x_7);
x_47 = l_Array_append___redArg(x_33, x_46);
lean_dec_ref(x_46);
lean_inc(x_31);
lean_inc(x_28);
x_48 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_48, 0, x_28);
lean_ctor_set(x_48, 1, x_31);
lean_ctor_set(x_48, 2, x_47);
x_49 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__8;
lean_inc(x_28);
x_50 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_50, 0, x_28);
lean_ctor_set(x_50, 1, x_49);
lean_inc(x_28);
x_51 = l_Lean_Syntax_node3(x_28, x_43, x_45, x_48, x_50);
lean_inc(x_31);
lean_inc(x_28);
x_52 = l_Lean_Syntax_node1(x_28, x_31, x_51);
lean_inc_n(x_32, 6);
lean_inc(x_28);
x_53 = l_Lean_Syntax_node7(x_28, x_23, x_32, x_52, x_32, x_32, x_32, x_32, x_32);
x_54 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__0;
lean_inc_ref(x_34);
lean_inc_ref(x_35);
x_55 = l_Lean_Name_mkStr4(x_35, x_34, x_29, x_54);
x_56 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__1;
lean_inc(x_28);
x_57 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_57, 0, x_28);
lean_ctor_set(x_57, 1, x_56);
x_58 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__3;
x_59 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__4;
lean_inc(x_5);
lean_inc(x_15);
x_60 = l_Lean_addMacroScope(x_15, x_59, x_5);
lean_inc(x_8);
lean_inc(x_28);
x_61 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_61, 0, x_28);
lean_ctor_set(x_61, 1, x_58);
lean_ctor_set(x_61, 2, x_60);
lean_ctor_set(x_61, 3, x_8);
lean_inc(x_32);
lean_inc(x_28);
x_62 = l_Lean_Syntax_node2(x_28, x_26, x_61, x_32);
x_63 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__6;
x_64 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__7;
lean_inc(x_5);
lean_inc(x_15);
x_65 = l_Lean_addMacroScope(x_15, x_64, x_5);
x_66 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__8;
x_67 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_67, 0, x_66);
lean_ctor_set(x_67, 1, x_13);
x_68 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__9;
lean_inc(x_8);
x_69 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_69, 0, x_68);
lean_ctor_set(x_69, 1, x_8);
x_70 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_70, 0, x_67);
lean_ctor_set(x_70, 1, x_69);
lean_inc(x_28);
x_71 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_71, 0, x_28);
lean_ctor_set(x_71, 1, x_63);
lean_ctor_set(x_71, 2, x_65);
lean_ctor_set(x_71, 3, x_70);
lean_inc(x_28);
x_72 = l_Lean_Syntax_node2(x_28, x_4, x_20, x_71);
lean_inc(x_31);
lean_inc(x_28);
x_73 = l_Lean_Syntax_node1(x_28, x_31, x_72);
lean_inc(x_32);
lean_inc(x_28);
x_74 = l_Lean_Syntax_node2(x_28, x_17, x_32, x_73);
x_75 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__10;
x_76 = l_Lean_Name_mkStr4(x_35, x_34, x_16, x_75);
x_77 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__11;
lean_inc(x_28);
x_78 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_78, 0, x_28);
lean_ctor_set(x_78, 1, x_77);
x_79 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__13;
x_80 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__14;
x_81 = l_Lean_addMacroScope(x_15, x_80, x_5);
lean_inc(x_28);
x_82 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_82, 0, x_28);
lean_ctor_set(x_82, 1, x_79);
lean_ctor_set(x_82, 2, x_81);
lean_ctor_set(x_82, 3, x_8);
lean_inc(x_28);
x_83 = l_Lean_Syntax_node3(x_28, x_76, x_24, x_78, x_82);
lean_inc(x_32);
lean_inc(x_28);
x_84 = l_Lean_Syntax_node4(x_28, x_10, x_21, x_83, x_14, x_32);
lean_inc(x_28);
x_85 = l_Lean_Syntax_node5(x_28, x_55, x_57, x_62, x_74, x_84, x_32);
lean_inc(x_28);
x_86 = l_Lean_Syntax_node2(x_28, x_12, x_53, x_85);
x_87 = l_Lean_Syntax_node3(x_28, x_31, x_6, x_41, x_86);
x_88 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_88, 0, x_87);
lean_ctor_set(x_88, 1, x_30);
return x_88;
}
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand__1___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("expandTargetCommand", 19, 19);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand__1___closed__0;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__9;
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand__1() {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__0;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__16;
x_4 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand__1___closed__1;
x_5 = lean_alloc_closure((void*)(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand), 3, 0);
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___redArg(x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand__1___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand__1();
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_mkConfigDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_7, 0, x_1);
lean_ctor_set(x_7, 1, x_2);
lean_ctor_set(x_7, 2, x_3);
lean_ctor_set(x_7, 3, x_4);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_mkConfigDecl___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___lam__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_Elab_Command_getRef___redArg(x_1);
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_5; 
x_5 = !lean_is_exclusive(x_4);
if (x_5 == 0)
{
lean_object* x_6; uint8_t x_7; lean_object* x_8; 
x_6 = lean_ctor_get(x_4, 0);
x_7 = 0;
x_8 = l_Lean_SourceInfo_fromRef(x_6, x_7);
lean_dec(x_6);
lean_ctor_set(x_4, 0, x_8);
return x_4;
}
else
{
lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; 
x_9 = lean_ctor_get(x_4, 0);
lean_inc(x_9);
lean_dec(x_4);
x_10 = 0;
x_11 = l_Lean_SourceInfo_fromRef(x_9, x_10);
lean_dec(x_9);
x_12 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
}
else
{
uint8_t x_13; 
x_13 = !lean_is_exclusive(x_4);
if (x_13 == 0)
{
return x_4;
}
else
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_ctor_get(x_4, 0);
lean_inc(x_14);
lean_dec(x_4);
x_15 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_15, 0, x_14);
return x_15;
}
}
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lake.DSL.mkConfigDecl", 21, 21);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__0;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("mkConfigDecl", 12, 12);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__32;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ConfigTarget", 12, 12);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__4;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__4;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__4;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__7;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__7;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = l_instMonadEST(lean_box(0), lean_box(0));
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__10;
x_2 = l_ReaderT_instMonad___redArg(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_instMonadCommandElabM___lam__0___boxed), 5, 0);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__13() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_instMonadCommandElabM___lam__1___boxed), 7, 0);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__42;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55;
x_4 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__43;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55;
x_4 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__48;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__47;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55;
x_4 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__17() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("config", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__17;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__19() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__17;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_231; uint8_t x_232; 
x_231 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__11;
x_232 = !lean_is_exclusive(x_231);
if (x_232 == 0)
{
lean_object* x_233; lean_object* x_234; uint8_t x_235; 
x_233 = lean_ctor_get(x_231, 0);
x_234 = lean_ctor_get(x_231, 1);
lean_dec(x_234);
x_235 = !lean_is_exclusive(x_233);
if (x_235 == 0)
{
lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; 
x_236 = lean_ctor_get(x_233, 0);
x_237 = lean_ctor_get(x_233, 2);
x_238 = lean_ctor_get(x_233, 3);
x_239 = lean_ctor_get(x_233, 4);
x_240 = lean_ctor_get(x_233, 1);
lean_dec(x_240);
x_241 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__12;
x_242 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__13;
lean_inc_ref(x_236);
x_243 = lean_alloc_closure((void*)(l_ReaderT_instFunctorOfMonad___lam__0), 6, 1);
lean_closure_set(x_243, 0, x_236);
x_244 = lean_alloc_closure((void*)(l_ReaderT_instFunctorOfMonad___lam__1), 6, 1);
lean_closure_set(x_244, 0, x_236);
x_245 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_245, 0, x_243);
lean_ctor_set(x_245, 1, x_244);
x_246 = lean_alloc_closure((void*)(l_ReaderT_instApplicativeOfMonad___lam__1), 6, 1);
lean_closure_set(x_246, 0, x_239);
x_247 = lean_alloc_closure((void*)(l_ReaderT_instApplicativeOfMonad___lam__3), 6, 1);
lean_closure_set(x_247, 0, x_238);
x_248 = lean_alloc_closure((void*)(l_ReaderT_instApplicativeOfMonad___lam__4), 6, 1);
lean_closure_set(x_248, 0, x_237);
lean_ctor_set(x_233, 4, x_246);
lean_ctor_set(x_233, 3, x_247);
lean_ctor_set(x_233, 2, x_248);
lean_ctor_set(x_233, 1, x_241);
lean_ctor_set(x_233, 0, x_245);
lean_ctor_set(x_231, 1, x_242);
x_249 = l_Lean_Elab_Command_instMonadRefCommandElabM;
x_250 = l_Lean_Elab_Command_getRef___redArg(x_10);
if (lean_obj_tag(x_250) == 0)
{
lean_object* x_251; lean_object* x_252; 
x_251 = lean_ctor_get(x_250, 0);
lean_inc(x_251);
lean_dec_ref(x_250);
x_252 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_10);
if (lean_obj_tag(x_252) == 0)
{
lean_object* x_253; lean_object* x_254; lean_object* x_255; uint8_t x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_350; lean_object* x_351; lean_object* x_352; 
x_253 = lean_ctor_get(x_252, 0);
lean_inc(x_253);
lean_dec_ref(x_252);
x_254 = l_Lean_Elab_Command_instMonadEnvCommandElabM;
x_255 = lean_ctor_get(x_10, 5);
x_256 = 0;
x_350 = l_Lean_SourceInfo_fromRef(x_251, x_256);
lean_dec(x_251);
if (lean_obj_tag(x_255) == 0)
{
lean_object* x_391; lean_object* x_392; 
lean_inc_ref(x_231);
x_391 = l_Lean_getMainModule___redArg(x_231, x_254);
lean_inc(x_11);
lean_inc_ref(x_10);
x_392 = lean_apply_3(x_391, x_10, x_11, lean_box(0));
if (lean_obj_tag(x_392) == 0)
{
lean_object* x_393; 
x_393 = lean_ctor_get(x_392, 0);
lean_inc(x_393);
lean_dec_ref(x_392);
x_351 = x_393;
x_352 = lean_box(0);
goto block_390;
}
else
{
uint8_t x_394; 
lean_dec(x_350);
lean_dec(x_253);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_394 = !lean_is_exclusive(x_392);
if (x_394 == 0)
{
return x_392;
}
else
{
lean_object* x_395; lean_object* x_396; 
x_395 = lean_ctor_get(x_392, 0);
lean_inc(x_395);
lean_dec(x_392);
x_396 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_396, 0, x_395);
return x_396;
}
}
}
else
{
lean_object* x_397; 
x_397 = lean_ctor_get(x_255, 0);
lean_inc(x_397);
x_351 = x_397;
x_352 = lean_box(0);
goto block_390;
}
block_309:
{
lean_object* x_273; lean_object* x_274; 
lean_inc_ref(x_231);
x_273 = l_Lean_mkIdentFromRef___redArg(x_231, x_249, x_5, x_256);
lean_inc(x_11);
lean_inc_ref(x_10);
x_274 = lean_apply_3(x_273, x_10, x_11, lean_box(0));
if (lean_obj_tag(x_274) == 0)
{
lean_object* x_275; lean_object* x_276; 
x_275 = lean_ctor_get(x_274, 0);
lean_inc(x_275);
lean_dec_ref(x_274);
x_276 = l_Lean_Elab_Command_getRef___redArg(x_10);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_277; lean_object* x_278; 
x_277 = lean_ctor_get(x_276, 0);
lean_inc(x_277);
lean_dec_ref(x_276);
x_278 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___lam__0(x_10, x_11);
if (lean_obj_tag(x_278) == 0)
{
lean_object* x_279; lean_object* x_280; 
x_279 = lean_ctor_get(x_278, 0);
lean_inc(x_279);
lean_dec_ref(x_278);
x_280 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_10);
if (lean_obj_tag(x_280) == 0)
{
lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; 
x_281 = lean_ctor_get(x_280, 0);
lean_inc(x_281);
lean_dec_ref(x_280);
lean_inc_ref(x_265);
lean_inc(x_260);
lean_inc(x_259);
x_282 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_282, 0, x_259);
lean_ctor_set(x_282, 1, x_260);
lean_ctor_set(x_282, 2, x_265);
lean_inc_ref(x_282);
lean_inc(x_259);
x_283 = l_Lean_Syntax_node1(x_259, x_270, x_282);
lean_inc(x_259);
x_284 = l_Lean_Syntax_node2(x_259, x_266, x_267, x_282);
x_285 = l_Lean_Syntax_node2(x_259, x_271, x_283, x_284);
x_286 = lean_unsigned_to_nat(2u);
x_287 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__12;
x_288 = lean_array_push(x_287, x_261);
x_289 = lean_array_push(x_288, x_285);
x_290 = l_Lake_DSL_expandAttrs(x_7);
x_291 = l_Array_append___redArg(x_289, x_290);
lean_dec_ref(x_290);
x_292 = l_Lake_Name_quoteFrom(x_277, x_3, x_256);
if (lean_obj_tag(x_255) == 0)
{
lean_object* x_293; lean_object* x_294; 
x_293 = l_Lean_getMainModule___redArg(x_231, x_254);
x_294 = lean_apply_3(x_293, x_10, x_11, lean_box(0));
if (lean_obj_tag(x_294) == 0)
{
lean_object* x_295; 
x_295 = lean_ctor_get(x_294, 0);
lean_inc(x_295);
lean_dec_ref(x_294);
x_133 = x_279;
x_134 = x_257;
x_135 = x_286;
x_136 = x_258;
x_137 = x_281;
x_138 = x_260;
x_139 = x_262;
x_140 = x_291;
x_141 = x_263;
x_142 = x_264;
x_143 = x_292;
x_144 = x_265;
x_145 = x_268;
x_146 = x_269;
x_147 = x_275;
x_148 = x_295;
x_149 = lean_box(0);
goto block_230;
}
else
{
uint8_t x_296; 
lean_dec(x_292);
lean_dec_ref(x_291);
lean_dec(x_281);
lean_dec(x_279);
lean_dec(x_275);
lean_dec_ref(x_269);
lean_dec_ref(x_268);
lean_dec_ref(x_265);
lean_dec(x_264);
lean_dec(x_263);
lean_dec_ref(x_262);
lean_dec(x_260);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_6);
x_296 = !lean_is_exclusive(x_294);
if (x_296 == 0)
{
return x_294;
}
else
{
lean_object* x_297; lean_object* x_298; 
x_297 = lean_ctor_get(x_294, 0);
lean_inc(x_297);
lean_dec(x_294);
x_298 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_298, 0, x_297);
return x_298;
}
}
}
else
{
lean_object* x_299; 
lean_inc_ref(x_255);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
x_299 = lean_ctor_get(x_255, 0);
lean_inc(x_299);
lean_dec_ref(x_255);
x_133 = x_279;
x_134 = x_257;
x_135 = x_286;
x_136 = x_258;
x_137 = x_281;
x_138 = x_260;
x_139 = x_262;
x_140 = x_291;
x_141 = x_263;
x_142 = x_264;
x_143 = x_292;
x_144 = x_265;
x_145 = x_268;
x_146 = x_269;
x_147 = x_275;
x_148 = x_299;
x_149 = lean_box(0);
goto block_230;
}
}
else
{
uint8_t x_300; 
lean_dec(x_279);
lean_dec(x_277);
lean_dec(x_275);
lean_dec(x_271);
lean_dec(x_270);
lean_dec_ref(x_269);
lean_dec_ref(x_268);
lean_dec(x_267);
lean_dec(x_266);
lean_dec_ref(x_265);
lean_dec(x_264);
lean_dec(x_263);
lean_dec_ref(x_262);
lean_dec(x_261);
lean_dec(x_260);
lean_dec(x_259);
lean_dec(x_258);
lean_dec(x_257);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
x_300 = !lean_is_exclusive(x_280);
if (x_300 == 0)
{
return x_280;
}
else
{
lean_object* x_301; lean_object* x_302; 
x_301 = lean_ctor_get(x_280, 0);
lean_inc(x_301);
lean_dec(x_280);
x_302 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_302, 0, x_301);
return x_302;
}
}
}
else
{
uint8_t x_303; 
lean_dec(x_277);
lean_dec(x_275);
lean_dec(x_271);
lean_dec(x_270);
lean_dec_ref(x_269);
lean_dec_ref(x_268);
lean_dec(x_267);
lean_dec(x_266);
lean_dec_ref(x_265);
lean_dec(x_264);
lean_dec(x_263);
lean_dec_ref(x_262);
lean_dec(x_261);
lean_dec(x_260);
lean_dec(x_259);
lean_dec(x_258);
lean_dec(x_257);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
x_303 = !lean_is_exclusive(x_278);
if (x_303 == 0)
{
return x_278;
}
else
{
lean_object* x_304; lean_object* x_305; 
x_304 = lean_ctor_get(x_278, 0);
lean_inc(x_304);
lean_dec(x_278);
x_305 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_305, 0, x_304);
return x_305;
}
}
}
else
{
uint8_t x_306; 
lean_dec(x_275);
lean_dec(x_271);
lean_dec(x_270);
lean_dec_ref(x_269);
lean_dec_ref(x_268);
lean_dec(x_267);
lean_dec(x_266);
lean_dec_ref(x_265);
lean_dec(x_264);
lean_dec(x_263);
lean_dec_ref(x_262);
lean_dec(x_261);
lean_dec(x_260);
lean_dec(x_259);
lean_dec(x_258);
lean_dec(x_257);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
x_306 = !lean_is_exclusive(x_276);
if (x_306 == 0)
{
return x_276;
}
else
{
lean_object* x_307; lean_object* x_308; 
x_307 = lean_ctor_get(x_276, 0);
lean_inc(x_307);
lean_dec(x_276);
x_308 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_308, 0, x_307);
return x_308;
}
}
}
else
{
lean_dec(x_271);
lean_dec(x_270);
lean_dec_ref(x_269);
lean_dec_ref(x_268);
lean_dec(x_267);
lean_dec(x_266);
lean_dec_ref(x_265);
lean_dec(x_264);
lean_dec(x_263);
lean_dec_ref(x_262);
lean_dec(x_261);
lean_dec(x_260);
lean_dec(x_259);
lean_dec(x_258);
lean_dec(x_257);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
return x_274;
}
}
block_349:
{
lean_object* x_319; 
x_319 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___lam__0(x_10, x_11);
if (lean_obj_tag(x_319) == 0)
{
lean_object* x_320; lean_object* x_321; 
x_320 = lean_ctor_get(x_319, 0);
lean_inc(x_320);
lean_dec_ref(x_319);
x_321 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_10);
if (lean_obj_tag(x_321) == 0)
{
lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; 
lean_dec_ref(x_321);
x_322 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54;
x_323 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55;
x_324 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56;
x_325 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__14;
x_326 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__15;
x_327 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__45;
x_328 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__46;
lean_inc(x_313);
x_329 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_329, 0, x_313);
lean_ctor_set(x_329, 1, x_327);
lean_ctor_set(x_329, 2, x_328);
lean_inc_ref(x_329);
lean_inc(x_313);
x_330 = l_Lean_Syntax_node1(x_313, x_326, x_329);
x_331 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__16;
x_332 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__23;
x_333 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__25;
x_334 = l_Lean_addMacroScope(x_317, x_333, x_314);
lean_inc(x_311);
lean_inc(x_313);
x_335 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_335, 0, x_313);
lean_ctor_set(x_335, 1, x_332);
lean_ctor_set(x_335, 2, x_334);
lean_ctor_set(x_335, 3, x_311);
lean_inc(x_313);
x_336 = l_Lean_Syntax_node2(x_313, x_331, x_335, x_329);
x_337 = l_Lean_Syntax_node2(x_313, x_325, x_330, x_336);
if (lean_obj_tag(x_255) == 0)
{
lean_object* x_338; lean_object* x_339; 
lean_inc_ref(x_231);
x_338 = l_Lean_getMainModule___redArg(x_231, x_254);
lean_inc(x_11);
lean_inc_ref(x_10);
x_339 = lean_apply_3(x_338, x_10, x_11, lean_box(0));
if (lean_obj_tag(x_339) == 0)
{
lean_dec_ref(x_339);
x_257 = x_310;
x_258 = x_311;
x_259 = x_320;
x_260 = x_327;
x_261 = x_337;
x_262 = x_322;
x_263 = x_315;
x_264 = x_316;
x_265 = x_328;
x_266 = x_331;
x_267 = x_312;
x_268 = x_324;
x_269 = x_323;
x_270 = x_326;
x_271 = x_325;
x_272 = lean_box(0);
goto block_309;
}
else
{
uint8_t x_340; 
lean_dec(x_337);
lean_dec(x_320);
lean_dec(x_316);
lean_dec(x_315);
lean_dec(x_312);
lean_dec(x_311);
lean_dec(x_310);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_340 = !lean_is_exclusive(x_339);
if (x_340 == 0)
{
return x_339;
}
else
{
lean_object* x_341; lean_object* x_342; 
x_341 = lean_ctor_get(x_339, 0);
lean_inc(x_341);
lean_dec(x_339);
x_342 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_342, 0, x_341);
return x_342;
}
}
}
else
{
x_257 = x_310;
x_258 = x_311;
x_259 = x_320;
x_260 = x_327;
x_261 = x_337;
x_262 = x_322;
x_263 = x_315;
x_264 = x_316;
x_265 = x_328;
x_266 = x_331;
x_267 = x_312;
x_268 = x_324;
x_269 = x_323;
x_270 = x_326;
x_271 = x_325;
x_272 = lean_box(0);
goto block_309;
}
}
else
{
uint8_t x_343; 
lean_dec(x_320);
lean_dec(x_317);
lean_dec(x_316);
lean_dec(x_315);
lean_dec(x_314);
lean_dec(x_313);
lean_dec(x_312);
lean_dec(x_311);
lean_dec(x_310);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_343 = !lean_is_exclusive(x_321);
if (x_343 == 0)
{
return x_321;
}
else
{
lean_object* x_344; lean_object* x_345; 
x_344 = lean_ctor_get(x_321, 0);
lean_inc(x_344);
lean_dec(x_321);
x_345 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_345, 0, x_344);
return x_345;
}
}
}
else
{
uint8_t x_346; 
lean_dec(x_317);
lean_dec(x_316);
lean_dec(x_315);
lean_dec(x_314);
lean_dec(x_313);
lean_dec(x_312);
lean_dec(x_311);
lean_dec(x_310);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_346 = !lean_is_exclusive(x_319);
if (x_346 == 0)
{
return x_319;
}
else
{
lean_object* x_347; lean_object* x_348; 
x_347 = lean_ctor_get(x_319, 0);
lean_inc(x_347);
lean_dec(x_319);
x_348 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_348, 0, x_347);
return x_348;
}
}
}
block_390:
{
lean_object* x_353; 
lean_inc(x_11);
lean_inc_ref(x_10);
x_353 = l_Lake_DSL_mkConfigDeclIdent(x_8, x_10, x_11);
if (lean_obj_tag(x_353) == 0)
{
lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; 
x_354 = lean_ctor_get(x_353, 0);
lean_inc(x_354);
lean_dec_ref(x_353);
x_355 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__18;
x_356 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__19;
x_357 = l_Lean_addMacroScope(x_351, x_356, x_253);
x_358 = lean_box(0);
x_359 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_359, 0, x_350);
lean_ctor_set(x_359, 1, x_355);
lean_ctor_set(x_359, 2, x_357);
lean_ctor_set(x_359, 3, x_358);
x_360 = l_Lean_TSyntax_getId(x_354);
lean_inc(x_354);
x_361 = l_Lake_Name_quoteFrom(x_354, x_360, x_256);
x_362 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__53;
lean_inc(x_361);
x_363 = lean_array_push(x_362, x_361);
lean_inc(x_1);
x_364 = l_Lean_Syntax_mkCApp(x_1, x_363);
lean_inc(x_11);
lean_inc_ref(x_10);
lean_inc_ref(x_359);
x_365 = l_Lake_DSL_elabConfig(x_1, x_4, x_359, x_364, x_9, x_10, x_11);
if (lean_obj_tag(x_365) == 0)
{
lean_object* x_366; lean_object* x_367; 
lean_dec_ref(x_365);
lean_inc_ref(x_231);
x_366 = l_Lean_mkIdentFromRef___redArg(x_231, x_249, x_2, x_256);
lean_inc(x_11);
lean_inc_ref(x_10);
x_367 = lean_apply_3(x_366, x_10, x_11, lean_box(0));
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_368; lean_object* x_369; 
x_368 = lean_ctor_get(x_367, 0);
lean_inc(x_368);
lean_dec_ref(x_367);
x_369 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___lam__0(x_10, x_11);
if (lean_obj_tag(x_369) == 0)
{
lean_object* x_370; lean_object* x_371; 
x_370 = lean_ctor_get(x_369, 0);
lean_inc(x_370);
lean_dec_ref(x_369);
x_371 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_10);
if (lean_obj_tag(x_371) == 0)
{
if (lean_obj_tag(x_255) == 0)
{
lean_object* x_372; lean_object* x_373; lean_object* x_374; 
x_372 = lean_ctor_get(x_371, 0);
lean_inc(x_372);
lean_dec_ref(x_371);
lean_inc_ref(x_231);
x_373 = l_Lean_getMainModule___redArg(x_231, x_254);
lean_inc(x_11);
lean_inc_ref(x_10);
x_374 = lean_apply_3(x_373, x_10, x_11, lean_box(0));
if (lean_obj_tag(x_374) == 0)
{
lean_object* x_375; 
x_375 = lean_ctor_get(x_374, 0);
lean_inc(x_375);
lean_dec_ref(x_374);
x_310 = x_359;
x_311 = x_358;
x_312 = x_368;
x_313 = x_370;
x_314 = x_372;
x_315 = x_361;
x_316 = x_354;
x_317 = x_375;
x_318 = lean_box(0);
goto block_349;
}
else
{
uint8_t x_376; 
lean_dec(x_372);
lean_dec(x_370);
lean_dec(x_368);
lean_dec(x_361);
lean_dec_ref(x_359);
lean_dec(x_354);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_376 = !lean_is_exclusive(x_374);
if (x_376 == 0)
{
return x_374;
}
else
{
lean_object* x_377; lean_object* x_378; 
x_377 = lean_ctor_get(x_374, 0);
lean_inc(x_377);
lean_dec(x_374);
x_378 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_378, 0, x_377);
return x_378;
}
}
}
else
{
lean_object* x_379; lean_object* x_380; 
x_379 = lean_ctor_get(x_371, 0);
lean_inc(x_379);
lean_dec_ref(x_371);
x_380 = lean_ctor_get(x_255, 0);
lean_inc(x_380);
x_310 = x_359;
x_311 = x_358;
x_312 = x_368;
x_313 = x_370;
x_314 = x_379;
x_315 = x_361;
x_316 = x_354;
x_317 = x_380;
x_318 = lean_box(0);
goto block_349;
}
}
else
{
uint8_t x_381; 
lean_dec(x_370);
lean_dec(x_368);
lean_dec(x_361);
lean_dec_ref(x_359);
lean_dec(x_354);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_381 = !lean_is_exclusive(x_371);
if (x_381 == 0)
{
return x_371;
}
else
{
lean_object* x_382; lean_object* x_383; 
x_382 = lean_ctor_get(x_371, 0);
lean_inc(x_382);
lean_dec(x_371);
x_383 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_383, 0, x_382);
return x_383;
}
}
}
else
{
uint8_t x_384; 
lean_dec(x_368);
lean_dec(x_361);
lean_dec_ref(x_359);
lean_dec(x_354);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_384 = !lean_is_exclusive(x_369);
if (x_384 == 0)
{
return x_369;
}
else
{
lean_object* x_385; lean_object* x_386; 
x_385 = lean_ctor_get(x_369, 0);
lean_inc(x_385);
lean_dec(x_369);
x_386 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_386, 0, x_385);
return x_386;
}
}
}
else
{
lean_dec(x_361);
lean_dec_ref(x_359);
lean_dec(x_354);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
return x_367;
}
}
else
{
uint8_t x_387; 
lean_dec(x_361);
lean_dec_ref(x_359);
lean_dec(x_354);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
x_387 = !lean_is_exclusive(x_365);
if (x_387 == 0)
{
return x_365;
}
else
{
lean_object* x_388; lean_object* x_389; 
x_388 = lean_ctor_get(x_365, 0);
lean_inc(x_388);
lean_dec(x_365);
x_389 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_389, 0, x_388);
return x_389;
}
}
}
else
{
lean_dec(x_351);
lean_dec(x_350);
lean_dec(x_253);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_9);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_353;
}
}
}
else
{
uint8_t x_398; 
lean_dec(x_251);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_398 = !lean_is_exclusive(x_252);
if (x_398 == 0)
{
return x_252;
}
else
{
lean_object* x_399; lean_object* x_400; 
x_399 = lean_ctor_get(x_252, 0);
lean_inc(x_399);
lean_dec(x_252);
x_400 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_400, 0, x_399);
return x_400;
}
}
}
else
{
uint8_t x_401; 
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_401 = !lean_is_exclusive(x_250);
if (x_401 == 0)
{
return x_250;
}
else
{
lean_object* x_402; lean_object* x_403; 
x_402 = lean_ctor_get(x_250, 0);
lean_inc(x_402);
lean_dec(x_250);
x_403 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_403, 0, x_402);
return x_403;
}
}
}
else
{
lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; 
x_404 = lean_ctor_get(x_233, 0);
x_405 = lean_ctor_get(x_233, 2);
x_406 = lean_ctor_get(x_233, 3);
x_407 = lean_ctor_get(x_233, 4);
lean_inc(x_407);
lean_inc(x_406);
lean_inc(x_405);
lean_inc(x_404);
lean_dec(x_233);
x_408 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__12;
x_409 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__13;
lean_inc_ref(x_404);
x_410 = lean_alloc_closure((void*)(l_ReaderT_instFunctorOfMonad___lam__0), 6, 1);
lean_closure_set(x_410, 0, x_404);
x_411 = lean_alloc_closure((void*)(l_ReaderT_instFunctorOfMonad___lam__1), 6, 1);
lean_closure_set(x_411, 0, x_404);
x_412 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_412, 0, x_410);
lean_ctor_set(x_412, 1, x_411);
x_413 = lean_alloc_closure((void*)(l_ReaderT_instApplicativeOfMonad___lam__1), 6, 1);
lean_closure_set(x_413, 0, x_407);
x_414 = lean_alloc_closure((void*)(l_ReaderT_instApplicativeOfMonad___lam__3), 6, 1);
lean_closure_set(x_414, 0, x_406);
x_415 = lean_alloc_closure((void*)(l_ReaderT_instApplicativeOfMonad___lam__4), 6, 1);
lean_closure_set(x_415, 0, x_405);
x_416 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_416, 0, x_412);
lean_ctor_set(x_416, 1, x_408);
lean_ctor_set(x_416, 2, x_415);
lean_ctor_set(x_416, 3, x_414);
lean_ctor_set(x_416, 4, x_413);
lean_ctor_set(x_231, 1, x_409);
lean_ctor_set(x_231, 0, x_416);
x_417 = l_Lean_Elab_Command_instMonadRefCommandElabM;
x_418 = l_Lean_Elab_Command_getRef___redArg(x_10);
if (lean_obj_tag(x_418) == 0)
{
lean_object* x_419; lean_object* x_420; 
x_419 = lean_ctor_get(x_418, 0);
lean_inc(x_419);
lean_dec_ref(x_418);
x_420 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_10);
if (lean_obj_tag(x_420) == 0)
{
lean_object* x_421; lean_object* x_422; lean_object* x_423; uint8_t x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_518; lean_object* x_519; lean_object* x_520; 
x_421 = lean_ctor_get(x_420, 0);
lean_inc(x_421);
lean_dec_ref(x_420);
x_422 = l_Lean_Elab_Command_instMonadEnvCommandElabM;
x_423 = lean_ctor_get(x_10, 5);
x_424 = 0;
x_518 = l_Lean_SourceInfo_fromRef(x_419, x_424);
lean_dec(x_419);
if (lean_obj_tag(x_423) == 0)
{
lean_object* x_559; lean_object* x_560; 
lean_inc_ref(x_231);
x_559 = l_Lean_getMainModule___redArg(x_231, x_422);
lean_inc(x_11);
lean_inc_ref(x_10);
x_560 = lean_apply_3(x_559, x_10, x_11, lean_box(0));
if (lean_obj_tag(x_560) == 0)
{
lean_object* x_561; 
x_561 = lean_ctor_get(x_560, 0);
lean_inc(x_561);
lean_dec_ref(x_560);
x_519 = x_561;
x_520 = lean_box(0);
goto block_558;
}
else
{
lean_object* x_562; lean_object* x_563; lean_object* x_564; 
lean_dec(x_518);
lean_dec(x_421);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_562 = lean_ctor_get(x_560, 0);
lean_inc(x_562);
if (lean_is_exclusive(x_560)) {
 lean_ctor_release(x_560, 0);
 x_563 = x_560;
} else {
 lean_dec_ref(x_560);
 x_563 = lean_box(0);
}
if (lean_is_scalar(x_563)) {
 x_564 = lean_alloc_ctor(1, 1, 0);
} else {
 x_564 = x_563;
}
lean_ctor_set(x_564, 0, x_562);
return x_564;
}
}
else
{
lean_object* x_565; 
x_565 = lean_ctor_get(x_423, 0);
lean_inc(x_565);
x_519 = x_565;
x_520 = lean_box(0);
goto block_558;
}
block_477:
{
lean_object* x_441; lean_object* x_442; 
lean_inc_ref(x_231);
x_441 = l_Lean_mkIdentFromRef___redArg(x_231, x_417, x_5, x_424);
lean_inc(x_11);
lean_inc_ref(x_10);
x_442 = lean_apply_3(x_441, x_10, x_11, lean_box(0));
if (lean_obj_tag(x_442) == 0)
{
lean_object* x_443; lean_object* x_444; 
x_443 = lean_ctor_get(x_442, 0);
lean_inc(x_443);
lean_dec_ref(x_442);
x_444 = l_Lean_Elab_Command_getRef___redArg(x_10);
if (lean_obj_tag(x_444) == 0)
{
lean_object* x_445; lean_object* x_446; 
x_445 = lean_ctor_get(x_444, 0);
lean_inc(x_445);
lean_dec_ref(x_444);
x_446 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___lam__0(x_10, x_11);
if (lean_obj_tag(x_446) == 0)
{
lean_object* x_447; lean_object* x_448; 
x_447 = lean_ctor_get(x_446, 0);
lean_inc(x_447);
lean_dec_ref(x_446);
x_448 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_10);
if (lean_obj_tag(x_448) == 0)
{
lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; 
x_449 = lean_ctor_get(x_448, 0);
lean_inc(x_449);
lean_dec_ref(x_448);
lean_inc_ref(x_433);
lean_inc(x_428);
lean_inc(x_427);
x_450 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_450, 0, x_427);
lean_ctor_set(x_450, 1, x_428);
lean_ctor_set(x_450, 2, x_433);
lean_inc_ref(x_450);
lean_inc(x_427);
x_451 = l_Lean_Syntax_node1(x_427, x_438, x_450);
lean_inc(x_427);
x_452 = l_Lean_Syntax_node2(x_427, x_434, x_435, x_450);
x_453 = l_Lean_Syntax_node2(x_427, x_439, x_451, x_452);
x_454 = lean_unsigned_to_nat(2u);
x_455 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__12;
x_456 = lean_array_push(x_455, x_429);
x_457 = lean_array_push(x_456, x_453);
x_458 = l_Lake_DSL_expandAttrs(x_7);
x_459 = l_Array_append___redArg(x_457, x_458);
lean_dec_ref(x_458);
x_460 = l_Lake_Name_quoteFrom(x_445, x_3, x_424);
if (lean_obj_tag(x_423) == 0)
{
lean_object* x_461; lean_object* x_462; 
x_461 = l_Lean_getMainModule___redArg(x_231, x_422);
x_462 = lean_apply_3(x_461, x_10, x_11, lean_box(0));
if (lean_obj_tag(x_462) == 0)
{
lean_object* x_463; 
x_463 = lean_ctor_get(x_462, 0);
lean_inc(x_463);
lean_dec_ref(x_462);
x_133 = x_447;
x_134 = x_425;
x_135 = x_454;
x_136 = x_426;
x_137 = x_449;
x_138 = x_428;
x_139 = x_430;
x_140 = x_459;
x_141 = x_431;
x_142 = x_432;
x_143 = x_460;
x_144 = x_433;
x_145 = x_436;
x_146 = x_437;
x_147 = x_443;
x_148 = x_463;
x_149 = lean_box(0);
goto block_230;
}
else
{
lean_object* x_464; lean_object* x_465; lean_object* x_466; 
lean_dec(x_460);
lean_dec_ref(x_459);
lean_dec(x_449);
lean_dec(x_447);
lean_dec(x_443);
lean_dec_ref(x_437);
lean_dec_ref(x_436);
lean_dec_ref(x_433);
lean_dec(x_432);
lean_dec(x_431);
lean_dec_ref(x_430);
lean_dec(x_428);
lean_dec(x_426);
lean_dec(x_425);
lean_dec(x_6);
x_464 = lean_ctor_get(x_462, 0);
lean_inc(x_464);
if (lean_is_exclusive(x_462)) {
 lean_ctor_release(x_462, 0);
 x_465 = x_462;
} else {
 lean_dec_ref(x_462);
 x_465 = lean_box(0);
}
if (lean_is_scalar(x_465)) {
 x_466 = lean_alloc_ctor(1, 1, 0);
} else {
 x_466 = x_465;
}
lean_ctor_set(x_466, 0, x_464);
return x_466;
}
}
else
{
lean_object* x_467; 
lean_inc_ref(x_423);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
x_467 = lean_ctor_get(x_423, 0);
lean_inc(x_467);
lean_dec_ref(x_423);
x_133 = x_447;
x_134 = x_425;
x_135 = x_454;
x_136 = x_426;
x_137 = x_449;
x_138 = x_428;
x_139 = x_430;
x_140 = x_459;
x_141 = x_431;
x_142 = x_432;
x_143 = x_460;
x_144 = x_433;
x_145 = x_436;
x_146 = x_437;
x_147 = x_443;
x_148 = x_467;
x_149 = lean_box(0);
goto block_230;
}
}
else
{
lean_object* x_468; lean_object* x_469; lean_object* x_470; 
lean_dec(x_447);
lean_dec(x_445);
lean_dec(x_443);
lean_dec(x_439);
lean_dec(x_438);
lean_dec_ref(x_437);
lean_dec_ref(x_436);
lean_dec(x_435);
lean_dec(x_434);
lean_dec_ref(x_433);
lean_dec(x_432);
lean_dec(x_431);
lean_dec_ref(x_430);
lean_dec(x_429);
lean_dec(x_428);
lean_dec(x_427);
lean_dec(x_426);
lean_dec(x_425);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
x_468 = lean_ctor_get(x_448, 0);
lean_inc(x_468);
if (lean_is_exclusive(x_448)) {
 lean_ctor_release(x_448, 0);
 x_469 = x_448;
} else {
 lean_dec_ref(x_448);
 x_469 = lean_box(0);
}
if (lean_is_scalar(x_469)) {
 x_470 = lean_alloc_ctor(1, 1, 0);
} else {
 x_470 = x_469;
}
lean_ctor_set(x_470, 0, x_468);
return x_470;
}
}
else
{
lean_object* x_471; lean_object* x_472; lean_object* x_473; 
lean_dec(x_445);
lean_dec(x_443);
lean_dec(x_439);
lean_dec(x_438);
lean_dec_ref(x_437);
lean_dec_ref(x_436);
lean_dec(x_435);
lean_dec(x_434);
lean_dec_ref(x_433);
lean_dec(x_432);
lean_dec(x_431);
lean_dec_ref(x_430);
lean_dec(x_429);
lean_dec(x_428);
lean_dec(x_427);
lean_dec(x_426);
lean_dec(x_425);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
x_471 = lean_ctor_get(x_446, 0);
lean_inc(x_471);
if (lean_is_exclusive(x_446)) {
 lean_ctor_release(x_446, 0);
 x_472 = x_446;
} else {
 lean_dec_ref(x_446);
 x_472 = lean_box(0);
}
if (lean_is_scalar(x_472)) {
 x_473 = lean_alloc_ctor(1, 1, 0);
} else {
 x_473 = x_472;
}
lean_ctor_set(x_473, 0, x_471);
return x_473;
}
}
else
{
lean_object* x_474; lean_object* x_475; lean_object* x_476; 
lean_dec(x_443);
lean_dec(x_439);
lean_dec(x_438);
lean_dec_ref(x_437);
lean_dec_ref(x_436);
lean_dec(x_435);
lean_dec(x_434);
lean_dec_ref(x_433);
lean_dec(x_432);
lean_dec(x_431);
lean_dec_ref(x_430);
lean_dec(x_429);
lean_dec(x_428);
lean_dec(x_427);
lean_dec(x_426);
lean_dec(x_425);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
x_474 = lean_ctor_get(x_444, 0);
lean_inc(x_474);
if (lean_is_exclusive(x_444)) {
 lean_ctor_release(x_444, 0);
 x_475 = x_444;
} else {
 lean_dec_ref(x_444);
 x_475 = lean_box(0);
}
if (lean_is_scalar(x_475)) {
 x_476 = lean_alloc_ctor(1, 1, 0);
} else {
 x_476 = x_475;
}
lean_ctor_set(x_476, 0, x_474);
return x_476;
}
}
else
{
lean_dec(x_439);
lean_dec(x_438);
lean_dec_ref(x_437);
lean_dec_ref(x_436);
lean_dec(x_435);
lean_dec(x_434);
lean_dec_ref(x_433);
lean_dec(x_432);
lean_dec(x_431);
lean_dec_ref(x_430);
lean_dec(x_429);
lean_dec(x_428);
lean_dec(x_427);
lean_dec(x_426);
lean_dec(x_425);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
return x_442;
}
}
block_517:
{
lean_object* x_487; 
x_487 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___lam__0(x_10, x_11);
if (lean_obj_tag(x_487) == 0)
{
lean_object* x_488; lean_object* x_489; 
x_488 = lean_ctor_get(x_487, 0);
lean_inc(x_488);
lean_dec_ref(x_487);
x_489 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_10);
if (lean_obj_tag(x_489) == 0)
{
lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; 
lean_dec_ref(x_489);
x_490 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54;
x_491 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55;
x_492 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56;
x_493 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__14;
x_494 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__15;
x_495 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__45;
x_496 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__46;
lean_inc(x_481);
x_497 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_497, 0, x_481);
lean_ctor_set(x_497, 1, x_495);
lean_ctor_set(x_497, 2, x_496);
lean_inc_ref(x_497);
lean_inc(x_481);
x_498 = l_Lean_Syntax_node1(x_481, x_494, x_497);
x_499 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__16;
x_500 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__23;
x_501 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__25;
x_502 = l_Lean_addMacroScope(x_485, x_501, x_482);
lean_inc(x_479);
lean_inc(x_481);
x_503 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_503, 0, x_481);
lean_ctor_set(x_503, 1, x_500);
lean_ctor_set(x_503, 2, x_502);
lean_ctor_set(x_503, 3, x_479);
lean_inc(x_481);
x_504 = l_Lean_Syntax_node2(x_481, x_499, x_503, x_497);
x_505 = l_Lean_Syntax_node2(x_481, x_493, x_498, x_504);
if (lean_obj_tag(x_423) == 0)
{
lean_object* x_506; lean_object* x_507; 
lean_inc_ref(x_231);
x_506 = l_Lean_getMainModule___redArg(x_231, x_422);
lean_inc(x_11);
lean_inc_ref(x_10);
x_507 = lean_apply_3(x_506, x_10, x_11, lean_box(0));
if (lean_obj_tag(x_507) == 0)
{
lean_dec_ref(x_507);
x_425 = x_478;
x_426 = x_479;
x_427 = x_488;
x_428 = x_495;
x_429 = x_505;
x_430 = x_490;
x_431 = x_483;
x_432 = x_484;
x_433 = x_496;
x_434 = x_499;
x_435 = x_480;
x_436 = x_492;
x_437 = x_491;
x_438 = x_494;
x_439 = x_493;
x_440 = lean_box(0);
goto block_477;
}
else
{
lean_object* x_508; lean_object* x_509; lean_object* x_510; 
lean_dec(x_505);
lean_dec(x_488);
lean_dec(x_484);
lean_dec(x_483);
lean_dec(x_480);
lean_dec(x_479);
lean_dec(x_478);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_508 = lean_ctor_get(x_507, 0);
lean_inc(x_508);
if (lean_is_exclusive(x_507)) {
 lean_ctor_release(x_507, 0);
 x_509 = x_507;
} else {
 lean_dec_ref(x_507);
 x_509 = lean_box(0);
}
if (lean_is_scalar(x_509)) {
 x_510 = lean_alloc_ctor(1, 1, 0);
} else {
 x_510 = x_509;
}
lean_ctor_set(x_510, 0, x_508);
return x_510;
}
}
else
{
x_425 = x_478;
x_426 = x_479;
x_427 = x_488;
x_428 = x_495;
x_429 = x_505;
x_430 = x_490;
x_431 = x_483;
x_432 = x_484;
x_433 = x_496;
x_434 = x_499;
x_435 = x_480;
x_436 = x_492;
x_437 = x_491;
x_438 = x_494;
x_439 = x_493;
x_440 = lean_box(0);
goto block_477;
}
}
else
{
lean_object* x_511; lean_object* x_512; lean_object* x_513; 
lean_dec(x_488);
lean_dec(x_485);
lean_dec(x_484);
lean_dec(x_483);
lean_dec(x_482);
lean_dec(x_481);
lean_dec(x_480);
lean_dec(x_479);
lean_dec(x_478);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_511 = lean_ctor_get(x_489, 0);
lean_inc(x_511);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 x_512 = x_489;
} else {
 lean_dec_ref(x_489);
 x_512 = lean_box(0);
}
if (lean_is_scalar(x_512)) {
 x_513 = lean_alloc_ctor(1, 1, 0);
} else {
 x_513 = x_512;
}
lean_ctor_set(x_513, 0, x_511);
return x_513;
}
}
else
{
lean_object* x_514; lean_object* x_515; lean_object* x_516; 
lean_dec(x_485);
lean_dec(x_484);
lean_dec(x_483);
lean_dec(x_482);
lean_dec(x_481);
lean_dec(x_480);
lean_dec(x_479);
lean_dec(x_478);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_514 = lean_ctor_get(x_487, 0);
lean_inc(x_514);
if (lean_is_exclusive(x_487)) {
 lean_ctor_release(x_487, 0);
 x_515 = x_487;
} else {
 lean_dec_ref(x_487);
 x_515 = lean_box(0);
}
if (lean_is_scalar(x_515)) {
 x_516 = lean_alloc_ctor(1, 1, 0);
} else {
 x_516 = x_515;
}
lean_ctor_set(x_516, 0, x_514);
return x_516;
}
}
block_558:
{
lean_object* x_521; 
lean_inc(x_11);
lean_inc_ref(x_10);
x_521 = l_Lake_DSL_mkConfigDeclIdent(x_8, x_10, x_11);
if (lean_obj_tag(x_521) == 0)
{
lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; 
x_522 = lean_ctor_get(x_521, 0);
lean_inc(x_522);
lean_dec_ref(x_521);
x_523 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__18;
x_524 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__19;
x_525 = l_Lean_addMacroScope(x_519, x_524, x_421);
x_526 = lean_box(0);
x_527 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_527, 0, x_518);
lean_ctor_set(x_527, 1, x_523);
lean_ctor_set(x_527, 2, x_525);
lean_ctor_set(x_527, 3, x_526);
x_528 = l_Lean_TSyntax_getId(x_522);
lean_inc(x_522);
x_529 = l_Lake_Name_quoteFrom(x_522, x_528, x_424);
x_530 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__53;
lean_inc(x_529);
x_531 = lean_array_push(x_530, x_529);
lean_inc(x_1);
x_532 = l_Lean_Syntax_mkCApp(x_1, x_531);
lean_inc(x_11);
lean_inc_ref(x_10);
lean_inc_ref(x_527);
x_533 = l_Lake_DSL_elabConfig(x_1, x_4, x_527, x_532, x_9, x_10, x_11);
if (lean_obj_tag(x_533) == 0)
{
lean_object* x_534; lean_object* x_535; 
lean_dec_ref(x_533);
lean_inc_ref(x_231);
x_534 = l_Lean_mkIdentFromRef___redArg(x_231, x_417, x_2, x_424);
lean_inc(x_11);
lean_inc_ref(x_10);
x_535 = lean_apply_3(x_534, x_10, x_11, lean_box(0));
if (lean_obj_tag(x_535) == 0)
{
lean_object* x_536; lean_object* x_537; 
x_536 = lean_ctor_get(x_535, 0);
lean_inc(x_536);
lean_dec_ref(x_535);
x_537 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___lam__0(x_10, x_11);
if (lean_obj_tag(x_537) == 0)
{
lean_object* x_538; lean_object* x_539; 
x_538 = lean_ctor_get(x_537, 0);
lean_inc(x_538);
lean_dec_ref(x_537);
x_539 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_10);
if (lean_obj_tag(x_539) == 0)
{
if (lean_obj_tag(x_423) == 0)
{
lean_object* x_540; lean_object* x_541; lean_object* x_542; 
x_540 = lean_ctor_get(x_539, 0);
lean_inc(x_540);
lean_dec_ref(x_539);
lean_inc_ref(x_231);
x_541 = l_Lean_getMainModule___redArg(x_231, x_422);
lean_inc(x_11);
lean_inc_ref(x_10);
x_542 = lean_apply_3(x_541, x_10, x_11, lean_box(0));
if (lean_obj_tag(x_542) == 0)
{
lean_object* x_543; 
x_543 = lean_ctor_get(x_542, 0);
lean_inc(x_543);
lean_dec_ref(x_542);
x_478 = x_527;
x_479 = x_526;
x_480 = x_536;
x_481 = x_538;
x_482 = x_540;
x_483 = x_529;
x_484 = x_522;
x_485 = x_543;
x_486 = lean_box(0);
goto block_517;
}
else
{
lean_object* x_544; lean_object* x_545; lean_object* x_546; 
lean_dec(x_540);
lean_dec(x_538);
lean_dec(x_536);
lean_dec(x_529);
lean_dec_ref(x_527);
lean_dec(x_522);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_544 = lean_ctor_get(x_542, 0);
lean_inc(x_544);
if (lean_is_exclusive(x_542)) {
 lean_ctor_release(x_542, 0);
 x_545 = x_542;
} else {
 lean_dec_ref(x_542);
 x_545 = lean_box(0);
}
if (lean_is_scalar(x_545)) {
 x_546 = lean_alloc_ctor(1, 1, 0);
} else {
 x_546 = x_545;
}
lean_ctor_set(x_546, 0, x_544);
return x_546;
}
}
else
{
lean_object* x_547; lean_object* x_548; 
x_547 = lean_ctor_get(x_539, 0);
lean_inc(x_547);
lean_dec_ref(x_539);
x_548 = lean_ctor_get(x_423, 0);
lean_inc(x_548);
x_478 = x_527;
x_479 = x_526;
x_480 = x_536;
x_481 = x_538;
x_482 = x_547;
x_483 = x_529;
x_484 = x_522;
x_485 = x_548;
x_486 = lean_box(0);
goto block_517;
}
}
else
{
lean_object* x_549; lean_object* x_550; lean_object* x_551; 
lean_dec(x_538);
lean_dec(x_536);
lean_dec(x_529);
lean_dec_ref(x_527);
lean_dec(x_522);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_549 = lean_ctor_get(x_539, 0);
lean_inc(x_549);
if (lean_is_exclusive(x_539)) {
 lean_ctor_release(x_539, 0);
 x_550 = x_539;
} else {
 lean_dec_ref(x_539);
 x_550 = lean_box(0);
}
if (lean_is_scalar(x_550)) {
 x_551 = lean_alloc_ctor(1, 1, 0);
} else {
 x_551 = x_550;
}
lean_ctor_set(x_551, 0, x_549);
return x_551;
}
}
else
{
lean_object* x_552; lean_object* x_553; lean_object* x_554; 
lean_dec(x_536);
lean_dec(x_529);
lean_dec_ref(x_527);
lean_dec(x_522);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_552 = lean_ctor_get(x_537, 0);
lean_inc(x_552);
if (lean_is_exclusive(x_537)) {
 lean_ctor_release(x_537, 0);
 x_553 = x_537;
} else {
 lean_dec_ref(x_537);
 x_553 = lean_box(0);
}
if (lean_is_scalar(x_553)) {
 x_554 = lean_alloc_ctor(1, 1, 0);
} else {
 x_554 = x_553;
}
lean_ctor_set(x_554, 0, x_552);
return x_554;
}
}
else
{
lean_dec(x_529);
lean_dec_ref(x_527);
lean_dec(x_522);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
return x_535;
}
}
else
{
lean_object* x_555; lean_object* x_556; lean_object* x_557; 
lean_dec(x_529);
lean_dec_ref(x_527);
lean_dec(x_522);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
x_555 = lean_ctor_get(x_533, 0);
lean_inc(x_555);
if (lean_is_exclusive(x_533)) {
 lean_ctor_release(x_533, 0);
 x_556 = x_533;
} else {
 lean_dec_ref(x_533);
 x_556 = lean_box(0);
}
if (lean_is_scalar(x_556)) {
 x_557 = lean_alloc_ctor(1, 1, 0);
} else {
 x_557 = x_556;
}
lean_ctor_set(x_557, 0, x_555);
return x_557;
}
}
else
{
lean_dec(x_519);
lean_dec(x_518);
lean_dec(x_421);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_9);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_521;
}
}
}
else
{
lean_object* x_566; lean_object* x_567; lean_object* x_568; 
lean_dec(x_419);
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_566 = lean_ctor_get(x_420, 0);
lean_inc(x_566);
if (lean_is_exclusive(x_420)) {
 lean_ctor_release(x_420, 0);
 x_567 = x_420;
} else {
 lean_dec_ref(x_420);
 x_567 = lean_box(0);
}
if (lean_is_scalar(x_567)) {
 x_568 = lean_alloc_ctor(1, 1, 0);
} else {
 x_568 = x_567;
}
lean_ctor_set(x_568, 0, x_566);
return x_568;
}
}
else
{
lean_object* x_569; lean_object* x_570; lean_object* x_571; 
lean_dec_ref(x_231);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_569 = lean_ctor_get(x_418, 0);
lean_inc(x_569);
if (lean_is_exclusive(x_418)) {
 lean_ctor_release(x_418, 0);
 x_570 = x_418;
} else {
 lean_dec_ref(x_418);
 x_570 = lean_box(0);
}
if (lean_is_scalar(x_570)) {
 x_571 = lean_alloc_ctor(1, 1, 0);
} else {
 x_571 = x_570;
}
lean_ctor_set(x_571, 0, x_569);
return x_571;
}
}
}
else
{
lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; 
x_572 = lean_ctor_get(x_231, 0);
lean_inc(x_572);
lean_dec(x_231);
x_573 = lean_ctor_get(x_572, 0);
lean_inc_ref(x_573);
x_574 = lean_ctor_get(x_572, 2);
lean_inc(x_574);
x_575 = lean_ctor_get(x_572, 3);
lean_inc(x_575);
x_576 = lean_ctor_get(x_572, 4);
lean_inc(x_576);
if (lean_is_exclusive(x_572)) {
 lean_ctor_release(x_572, 0);
 lean_ctor_release(x_572, 1);
 lean_ctor_release(x_572, 2);
 lean_ctor_release(x_572, 3);
 lean_ctor_release(x_572, 4);
 x_577 = x_572;
} else {
 lean_dec_ref(x_572);
 x_577 = lean_box(0);
}
x_578 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__12;
x_579 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__13;
lean_inc_ref(x_573);
x_580 = lean_alloc_closure((void*)(l_ReaderT_instFunctorOfMonad___lam__0), 6, 1);
lean_closure_set(x_580, 0, x_573);
x_581 = lean_alloc_closure((void*)(l_ReaderT_instFunctorOfMonad___lam__1), 6, 1);
lean_closure_set(x_581, 0, x_573);
x_582 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_582, 0, x_580);
lean_ctor_set(x_582, 1, x_581);
x_583 = lean_alloc_closure((void*)(l_ReaderT_instApplicativeOfMonad___lam__1), 6, 1);
lean_closure_set(x_583, 0, x_576);
x_584 = lean_alloc_closure((void*)(l_ReaderT_instApplicativeOfMonad___lam__3), 6, 1);
lean_closure_set(x_584, 0, x_575);
x_585 = lean_alloc_closure((void*)(l_ReaderT_instApplicativeOfMonad___lam__4), 6, 1);
lean_closure_set(x_585, 0, x_574);
if (lean_is_scalar(x_577)) {
 x_586 = lean_alloc_ctor(0, 5, 0);
} else {
 x_586 = x_577;
}
lean_ctor_set(x_586, 0, x_582);
lean_ctor_set(x_586, 1, x_578);
lean_ctor_set(x_586, 2, x_585);
lean_ctor_set(x_586, 3, x_584);
lean_ctor_set(x_586, 4, x_583);
x_587 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_587, 0, x_586);
lean_ctor_set(x_587, 1, x_579);
x_588 = l_Lean_Elab_Command_instMonadRefCommandElabM;
x_589 = l_Lean_Elab_Command_getRef___redArg(x_10);
if (lean_obj_tag(x_589) == 0)
{
lean_object* x_590; lean_object* x_591; 
x_590 = lean_ctor_get(x_589, 0);
lean_inc(x_590);
lean_dec_ref(x_589);
x_591 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_10);
if (lean_obj_tag(x_591) == 0)
{
lean_object* x_592; lean_object* x_593; lean_object* x_594; uint8_t x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_689; lean_object* x_690; lean_object* x_691; 
x_592 = lean_ctor_get(x_591, 0);
lean_inc(x_592);
lean_dec_ref(x_591);
x_593 = l_Lean_Elab_Command_instMonadEnvCommandElabM;
x_594 = lean_ctor_get(x_10, 5);
x_595 = 0;
x_689 = l_Lean_SourceInfo_fromRef(x_590, x_595);
lean_dec(x_590);
if (lean_obj_tag(x_594) == 0)
{
lean_object* x_730; lean_object* x_731; 
lean_inc_ref(x_587);
x_730 = l_Lean_getMainModule___redArg(x_587, x_593);
lean_inc(x_11);
lean_inc_ref(x_10);
x_731 = lean_apply_3(x_730, x_10, x_11, lean_box(0));
if (lean_obj_tag(x_731) == 0)
{
lean_object* x_732; 
x_732 = lean_ctor_get(x_731, 0);
lean_inc(x_732);
lean_dec_ref(x_731);
x_690 = x_732;
x_691 = lean_box(0);
goto block_729;
}
else
{
lean_object* x_733; lean_object* x_734; lean_object* x_735; 
lean_dec(x_689);
lean_dec(x_592);
lean_dec_ref(x_587);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_733 = lean_ctor_get(x_731, 0);
lean_inc(x_733);
if (lean_is_exclusive(x_731)) {
 lean_ctor_release(x_731, 0);
 x_734 = x_731;
} else {
 lean_dec_ref(x_731);
 x_734 = lean_box(0);
}
if (lean_is_scalar(x_734)) {
 x_735 = lean_alloc_ctor(1, 1, 0);
} else {
 x_735 = x_734;
}
lean_ctor_set(x_735, 0, x_733);
return x_735;
}
}
else
{
lean_object* x_736; 
x_736 = lean_ctor_get(x_594, 0);
lean_inc(x_736);
x_690 = x_736;
x_691 = lean_box(0);
goto block_729;
}
block_648:
{
lean_object* x_612; lean_object* x_613; 
lean_inc_ref(x_587);
x_612 = l_Lean_mkIdentFromRef___redArg(x_587, x_588, x_5, x_595);
lean_inc(x_11);
lean_inc_ref(x_10);
x_613 = lean_apply_3(x_612, x_10, x_11, lean_box(0));
if (lean_obj_tag(x_613) == 0)
{
lean_object* x_614; lean_object* x_615; 
x_614 = lean_ctor_get(x_613, 0);
lean_inc(x_614);
lean_dec_ref(x_613);
x_615 = l_Lean_Elab_Command_getRef___redArg(x_10);
if (lean_obj_tag(x_615) == 0)
{
lean_object* x_616; lean_object* x_617; 
x_616 = lean_ctor_get(x_615, 0);
lean_inc(x_616);
lean_dec_ref(x_615);
x_617 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___lam__0(x_10, x_11);
if (lean_obj_tag(x_617) == 0)
{
lean_object* x_618; lean_object* x_619; 
x_618 = lean_ctor_get(x_617, 0);
lean_inc(x_618);
lean_dec_ref(x_617);
x_619 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_10);
if (lean_obj_tag(x_619) == 0)
{
lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; 
x_620 = lean_ctor_get(x_619, 0);
lean_inc(x_620);
lean_dec_ref(x_619);
lean_inc_ref(x_604);
lean_inc(x_599);
lean_inc(x_598);
x_621 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_621, 0, x_598);
lean_ctor_set(x_621, 1, x_599);
lean_ctor_set(x_621, 2, x_604);
lean_inc_ref(x_621);
lean_inc(x_598);
x_622 = l_Lean_Syntax_node1(x_598, x_609, x_621);
lean_inc(x_598);
x_623 = l_Lean_Syntax_node2(x_598, x_605, x_606, x_621);
x_624 = l_Lean_Syntax_node2(x_598, x_610, x_622, x_623);
x_625 = lean_unsigned_to_nat(2u);
x_626 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__12;
x_627 = lean_array_push(x_626, x_600);
x_628 = lean_array_push(x_627, x_624);
x_629 = l_Lake_DSL_expandAttrs(x_7);
x_630 = l_Array_append___redArg(x_628, x_629);
lean_dec_ref(x_629);
x_631 = l_Lake_Name_quoteFrom(x_616, x_3, x_595);
if (lean_obj_tag(x_594) == 0)
{
lean_object* x_632; lean_object* x_633; 
x_632 = l_Lean_getMainModule___redArg(x_587, x_593);
x_633 = lean_apply_3(x_632, x_10, x_11, lean_box(0));
if (lean_obj_tag(x_633) == 0)
{
lean_object* x_634; 
x_634 = lean_ctor_get(x_633, 0);
lean_inc(x_634);
lean_dec_ref(x_633);
x_133 = x_618;
x_134 = x_596;
x_135 = x_625;
x_136 = x_597;
x_137 = x_620;
x_138 = x_599;
x_139 = x_601;
x_140 = x_630;
x_141 = x_602;
x_142 = x_603;
x_143 = x_631;
x_144 = x_604;
x_145 = x_607;
x_146 = x_608;
x_147 = x_614;
x_148 = x_634;
x_149 = lean_box(0);
goto block_230;
}
else
{
lean_object* x_635; lean_object* x_636; lean_object* x_637; 
lean_dec(x_631);
lean_dec_ref(x_630);
lean_dec(x_620);
lean_dec(x_618);
lean_dec(x_614);
lean_dec_ref(x_608);
lean_dec_ref(x_607);
lean_dec_ref(x_604);
lean_dec(x_603);
lean_dec(x_602);
lean_dec_ref(x_601);
lean_dec(x_599);
lean_dec(x_597);
lean_dec(x_596);
lean_dec(x_6);
x_635 = lean_ctor_get(x_633, 0);
lean_inc(x_635);
if (lean_is_exclusive(x_633)) {
 lean_ctor_release(x_633, 0);
 x_636 = x_633;
} else {
 lean_dec_ref(x_633);
 x_636 = lean_box(0);
}
if (lean_is_scalar(x_636)) {
 x_637 = lean_alloc_ctor(1, 1, 0);
} else {
 x_637 = x_636;
}
lean_ctor_set(x_637, 0, x_635);
return x_637;
}
}
else
{
lean_object* x_638; 
lean_inc_ref(x_594);
lean_dec_ref(x_587);
lean_dec(x_11);
lean_dec_ref(x_10);
x_638 = lean_ctor_get(x_594, 0);
lean_inc(x_638);
lean_dec_ref(x_594);
x_133 = x_618;
x_134 = x_596;
x_135 = x_625;
x_136 = x_597;
x_137 = x_620;
x_138 = x_599;
x_139 = x_601;
x_140 = x_630;
x_141 = x_602;
x_142 = x_603;
x_143 = x_631;
x_144 = x_604;
x_145 = x_607;
x_146 = x_608;
x_147 = x_614;
x_148 = x_638;
x_149 = lean_box(0);
goto block_230;
}
}
else
{
lean_object* x_639; lean_object* x_640; lean_object* x_641; 
lean_dec(x_618);
lean_dec(x_616);
lean_dec(x_614);
lean_dec(x_610);
lean_dec(x_609);
lean_dec_ref(x_608);
lean_dec_ref(x_607);
lean_dec(x_606);
lean_dec(x_605);
lean_dec_ref(x_604);
lean_dec(x_603);
lean_dec(x_602);
lean_dec_ref(x_601);
lean_dec(x_600);
lean_dec(x_599);
lean_dec(x_598);
lean_dec(x_597);
lean_dec(x_596);
lean_dec_ref(x_587);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
x_639 = lean_ctor_get(x_619, 0);
lean_inc(x_639);
if (lean_is_exclusive(x_619)) {
 lean_ctor_release(x_619, 0);
 x_640 = x_619;
} else {
 lean_dec_ref(x_619);
 x_640 = lean_box(0);
}
if (lean_is_scalar(x_640)) {
 x_641 = lean_alloc_ctor(1, 1, 0);
} else {
 x_641 = x_640;
}
lean_ctor_set(x_641, 0, x_639);
return x_641;
}
}
else
{
lean_object* x_642; lean_object* x_643; lean_object* x_644; 
lean_dec(x_616);
lean_dec(x_614);
lean_dec(x_610);
lean_dec(x_609);
lean_dec_ref(x_608);
lean_dec_ref(x_607);
lean_dec(x_606);
lean_dec(x_605);
lean_dec_ref(x_604);
lean_dec(x_603);
lean_dec(x_602);
lean_dec_ref(x_601);
lean_dec(x_600);
lean_dec(x_599);
lean_dec(x_598);
lean_dec(x_597);
lean_dec(x_596);
lean_dec_ref(x_587);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
x_642 = lean_ctor_get(x_617, 0);
lean_inc(x_642);
if (lean_is_exclusive(x_617)) {
 lean_ctor_release(x_617, 0);
 x_643 = x_617;
} else {
 lean_dec_ref(x_617);
 x_643 = lean_box(0);
}
if (lean_is_scalar(x_643)) {
 x_644 = lean_alloc_ctor(1, 1, 0);
} else {
 x_644 = x_643;
}
lean_ctor_set(x_644, 0, x_642);
return x_644;
}
}
else
{
lean_object* x_645; lean_object* x_646; lean_object* x_647; 
lean_dec(x_614);
lean_dec(x_610);
lean_dec(x_609);
lean_dec_ref(x_608);
lean_dec_ref(x_607);
lean_dec(x_606);
lean_dec(x_605);
lean_dec_ref(x_604);
lean_dec(x_603);
lean_dec(x_602);
lean_dec_ref(x_601);
lean_dec(x_600);
lean_dec(x_599);
lean_dec(x_598);
lean_dec(x_597);
lean_dec(x_596);
lean_dec_ref(x_587);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
x_645 = lean_ctor_get(x_615, 0);
lean_inc(x_645);
if (lean_is_exclusive(x_615)) {
 lean_ctor_release(x_615, 0);
 x_646 = x_615;
} else {
 lean_dec_ref(x_615);
 x_646 = lean_box(0);
}
if (lean_is_scalar(x_646)) {
 x_647 = lean_alloc_ctor(1, 1, 0);
} else {
 x_647 = x_646;
}
lean_ctor_set(x_647, 0, x_645);
return x_647;
}
}
else
{
lean_dec(x_610);
lean_dec(x_609);
lean_dec_ref(x_608);
lean_dec_ref(x_607);
lean_dec(x_606);
lean_dec(x_605);
lean_dec_ref(x_604);
lean_dec(x_603);
lean_dec(x_602);
lean_dec_ref(x_601);
lean_dec(x_600);
lean_dec(x_599);
lean_dec(x_598);
lean_dec(x_597);
lean_dec(x_596);
lean_dec_ref(x_587);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
return x_613;
}
}
block_688:
{
lean_object* x_658; 
x_658 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___lam__0(x_10, x_11);
if (lean_obj_tag(x_658) == 0)
{
lean_object* x_659; lean_object* x_660; 
x_659 = lean_ctor_get(x_658, 0);
lean_inc(x_659);
lean_dec_ref(x_658);
x_660 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_10);
if (lean_obj_tag(x_660) == 0)
{
lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; 
lean_dec_ref(x_660);
x_661 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54;
x_662 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55;
x_663 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56;
x_664 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__14;
x_665 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__15;
x_666 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__45;
x_667 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__46;
lean_inc(x_652);
x_668 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_668, 0, x_652);
lean_ctor_set(x_668, 1, x_666);
lean_ctor_set(x_668, 2, x_667);
lean_inc_ref(x_668);
lean_inc(x_652);
x_669 = l_Lean_Syntax_node1(x_652, x_665, x_668);
x_670 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__16;
x_671 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__23;
x_672 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__25;
x_673 = l_Lean_addMacroScope(x_656, x_672, x_653);
lean_inc(x_650);
lean_inc(x_652);
x_674 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_674, 0, x_652);
lean_ctor_set(x_674, 1, x_671);
lean_ctor_set(x_674, 2, x_673);
lean_ctor_set(x_674, 3, x_650);
lean_inc(x_652);
x_675 = l_Lean_Syntax_node2(x_652, x_670, x_674, x_668);
x_676 = l_Lean_Syntax_node2(x_652, x_664, x_669, x_675);
if (lean_obj_tag(x_594) == 0)
{
lean_object* x_677; lean_object* x_678; 
lean_inc_ref(x_587);
x_677 = l_Lean_getMainModule___redArg(x_587, x_593);
lean_inc(x_11);
lean_inc_ref(x_10);
x_678 = lean_apply_3(x_677, x_10, x_11, lean_box(0));
if (lean_obj_tag(x_678) == 0)
{
lean_dec_ref(x_678);
x_596 = x_649;
x_597 = x_650;
x_598 = x_659;
x_599 = x_666;
x_600 = x_676;
x_601 = x_661;
x_602 = x_654;
x_603 = x_655;
x_604 = x_667;
x_605 = x_670;
x_606 = x_651;
x_607 = x_663;
x_608 = x_662;
x_609 = x_665;
x_610 = x_664;
x_611 = lean_box(0);
goto block_648;
}
else
{
lean_object* x_679; lean_object* x_680; lean_object* x_681; 
lean_dec(x_676);
lean_dec(x_659);
lean_dec(x_655);
lean_dec(x_654);
lean_dec(x_651);
lean_dec(x_650);
lean_dec(x_649);
lean_dec_ref(x_587);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_679 = lean_ctor_get(x_678, 0);
lean_inc(x_679);
if (lean_is_exclusive(x_678)) {
 lean_ctor_release(x_678, 0);
 x_680 = x_678;
} else {
 lean_dec_ref(x_678);
 x_680 = lean_box(0);
}
if (lean_is_scalar(x_680)) {
 x_681 = lean_alloc_ctor(1, 1, 0);
} else {
 x_681 = x_680;
}
lean_ctor_set(x_681, 0, x_679);
return x_681;
}
}
else
{
x_596 = x_649;
x_597 = x_650;
x_598 = x_659;
x_599 = x_666;
x_600 = x_676;
x_601 = x_661;
x_602 = x_654;
x_603 = x_655;
x_604 = x_667;
x_605 = x_670;
x_606 = x_651;
x_607 = x_663;
x_608 = x_662;
x_609 = x_665;
x_610 = x_664;
x_611 = lean_box(0);
goto block_648;
}
}
else
{
lean_object* x_682; lean_object* x_683; lean_object* x_684; 
lean_dec(x_659);
lean_dec(x_656);
lean_dec(x_655);
lean_dec(x_654);
lean_dec(x_653);
lean_dec(x_652);
lean_dec(x_651);
lean_dec(x_650);
lean_dec(x_649);
lean_dec_ref(x_587);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_682 = lean_ctor_get(x_660, 0);
lean_inc(x_682);
if (lean_is_exclusive(x_660)) {
 lean_ctor_release(x_660, 0);
 x_683 = x_660;
} else {
 lean_dec_ref(x_660);
 x_683 = lean_box(0);
}
if (lean_is_scalar(x_683)) {
 x_684 = lean_alloc_ctor(1, 1, 0);
} else {
 x_684 = x_683;
}
lean_ctor_set(x_684, 0, x_682);
return x_684;
}
}
else
{
lean_object* x_685; lean_object* x_686; lean_object* x_687; 
lean_dec(x_656);
lean_dec(x_655);
lean_dec(x_654);
lean_dec(x_653);
lean_dec(x_652);
lean_dec(x_651);
lean_dec(x_650);
lean_dec(x_649);
lean_dec_ref(x_587);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_685 = lean_ctor_get(x_658, 0);
lean_inc(x_685);
if (lean_is_exclusive(x_658)) {
 lean_ctor_release(x_658, 0);
 x_686 = x_658;
} else {
 lean_dec_ref(x_658);
 x_686 = lean_box(0);
}
if (lean_is_scalar(x_686)) {
 x_687 = lean_alloc_ctor(1, 1, 0);
} else {
 x_687 = x_686;
}
lean_ctor_set(x_687, 0, x_685);
return x_687;
}
}
block_729:
{
lean_object* x_692; 
lean_inc(x_11);
lean_inc_ref(x_10);
x_692 = l_Lake_DSL_mkConfigDeclIdent(x_8, x_10, x_11);
if (lean_obj_tag(x_692) == 0)
{
lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; 
x_693 = lean_ctor_get(x_692, 0);
lean_inc(x_693);
lean_dec_ref(x_692);
x_694 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__18;
x_695 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__19;
x_696 = l_Lean_addMacroScope(x_690, x_695, x_592);
x_697 = lean_box(0);
x_698 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_698, 0, x_689);
lean_ctor_set(x_698, 1, x_694);
lean_ctor_set(x_698, 2, x_696);
lean_ctor_set(x_698, 3, x_697);
x_699 = l_Lean_TSyntax_getId(x_693);
lean_inc(x_693);
x_700 = l_Lake_Name_quoteFrom(x_693, x_699, x_595);
x_701 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__53;
lean_inc(x_700);
x_702 = lean_array_push(x_701, x_700);
lean_inc(x_1);
x_703 = l_Lean_Syntax_mkCApp(x_1, x_702);
lean_inc(x_11);
lean_inc_ref(x_10);
lean_inc_ref(x_698);
x_704 = l_Lake_DSL_elabConfig(x_1, x_4, x_698, x_703, x_9, x_10, x_11);
if (lean_obj_tag(x_704) == 0)
{
lean_object* x_705; lean_object* x_706; 
lean_dec_ref(x_704);
lean_inc_ref(x_587);
x_705 = l_Lean_mkIdentFromRef___redArg(x_587, x_588, x_2, x_595);
lean_inc(x_11);
lean_inc_ref(x_10);
x_706 = lean_apply_3(x_705, x_10, x_11, lean_box(0));
if (lean_obj_tag(x_706) == 0)
{
lean_object* x_707; lean_object* x_708; 
x_707 = lean_ctor_get(x_706, 0);
lean_inc(x_707);
lean_dec_ref(x_706);
x_708 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___lam__0(x_10, x_11);
if (lean_obj_tag(x_708) == 0)
{
lean_object* x_709; lean_object* x_710; 
x_709 = lean_ctor_get(x_708, 0);
lean_inc(x_709);
lean_dec_ref(x_708);
x_710 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_10);
if (lean_obj_tag(x_710) == 0)
{
if (lean_obj_tag(x_594) == 0)
{
lean_object* x_711; lean_object* x_712; lean_object* x_713; 
x_711 = lean_ctor_get(x_710, 0);
lean_inc(x_711);
lean_dec_ref(x_710);
lean_inc_ref(x_587);
x_712 = l_Lean_getMainModule___redArg(x_587, x_593);
lean_inc(x_11);
lean_inc_ref(x_10);
x_713 = lean_apply_3(x_712, x_10, x_11, lean_box(0));
if (lean_obj_tag(x_713) == 0)
{
lean_object* x_714; 
x_714 = lean_ctor_get(x_713, 0);
lean_inc(x_714);
lean_dec_ref(x_713);
x_649 = x_698;
x_650 = x_697;
x_651 = x_707;
x_652 = x_709;
x_653 = x_711;
x_654 = x_700;
x_655 = x_693;
x_656 = x_714;
x_657 = lean_box(0);
goto block_688;
}
else
{
lean_object* x_715; lean_object* x_716; lean_object* x_717; 
lean_dec(x_711);
lean_dec(x_709);
lean_dec(x_707);
lean_dec(x_700);
lean_dec_ref(x_698);
lean_dec(x_693);
lean_dec_ref(x_587);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_715 = lean_ctor_get(x_713, 0);
lean_inc(x_715);
if (lean_is_exclusive(x_713)) {
 lean_ctor_release(x_713, 0);
 x_716 = x_713;
} else {
 lean_dec_ref(x_713);
 x_716 = lean_box(0);
}
if (lean_is_scalar(x_716)) {
 x_717 = lean_alloc_ctor(1, 1, 0);
} else {
 x_717 = x_716;
}
lean_ctor_set(x_717, 0, x_715);
return x_717;
}
}
else
{
lean_object* x_718; lean_object* x_719; 
x_718 = lean_ctor_get(x_710, 0);
lean_inc(x_718);
lean_dec_ref(x_710);
x_719 = lean_ctor_get(x_594, 0);
lean_inc(x_719);
x_649 = x_698;
x_650 = x_697;
x_651 = x_707;
x_652 = x_709;
x_653 = x_718;
x_654 = x_700;
x_655 = x_693;
x_656 = x_719;
x_657 = lean_box(0);
goto block_688;
}
}
else
{
lean_object* x_720; lean_object* x_721; lean_object* x_722; 
lean_dec(x_709);
lean_dec(x_707);
lean_dec(x_700);
lean_dec_ref(x_698);
lean_dec(x_693);
lean_dec_ref(x_587);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_720 = lean_ctor_get(x_710, 0);
lean_inc(x_720);
if (lean_is_exclusive(x_710)) {
 lean_ctor_release(x_710, 0);
 x_721 = x_710;
} else {
 lean_dec_ref(x_710);
 x_721 = lean_box(0);
}
if (lean_is_scalar(x_721)) {
 x_722 = lean_alloc_ctor(1, 1, 0);
} else {
 x_722 = x_721;
}
lean_ctor_set(x_722, 0, x_720);
return x_722;
}
}
else
{
lean_object* x_723; lean_object* x_724; lean_object* x_725; 
lean_dec(x_707);
lean_dec(x_700);
lean_dec_ref(x_698);
lean_dec(x_693);
lean_dec_ref(x_587);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_723 = lean_ctor_get(x_708, 0);
lean_inc(x_723);
if (lean_is_exclusive(x_708)) {
 lean_ctor_release(x_708, 0);
 x_724 = x_708;
} else {
 lean_dec_ref(x_708);
 x_724 = lean_box(0);
}
if (lean_is_scalar(x_724)) {
 x_725 = lean_alloc_ctor(1, 1, 0);
} else {
 x_725 = x_724;
}
lean_ctor_set(x_725, 0, x_723);
return x_725;
}
}
else
{
lean_dec(x_700);
lean_dec_ref(x_698);
lean_dec(x_693);
lean_dec_ref(x_587);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
return x_706;
}
}
else
{
lean_object* x_726; lean_object* x_727; lean_object* x_728; 
lean_dec(x_700);
lean_dec_ref(x_698);
lean_dec(x_693);
lean_dec_ref(x_587);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
x_726 = lean_ctor_get(x_704, 0);
lean_inc(x_726);
if (lean_is_exclusive(x_704)) {
 lean_ctor_release(x_704, 0);
 x_727 = x_704;
} else {
 lean_dec_ref(x_704);
 x_727 = lean_box(0);
}
if (lean_is_scalar(x_727)) {
 x_728 = lean_alloc_ctor(1, 1, 0);
} else {
 x_728 = x_727;
}
lean_ctor_set(x_728, 0, x_726);
return x_728;
}
}
else
{
lean_dec(x_690);
lean_dec(x_689);
lean_dec(x_592);
lean_dec_ref(x_587);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_9);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_692;
}
}
}
else
{
lean_object* x_737; lean_object* x_738; lean_object* x_739; 
lean_dec(x_590);
lean_dec_ref(x_587);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_737 = lean_ctor_get(x_591, 0);
lean_inc(x_737);
if (lean_is_exclusive(x_591)) {
 lean_ctor_release(x_591, 0);
 x_738 = x_591;
} else {
 lean_dec_ref(x_591);
 x_738 = lean_box(0);
}
if (lean_is_scalar(x_738)) {
 x_739 = lean_alloc_ctor(1, 1, 0);
} else {
 x_739 = x_738;
}
lean_ctor_set(x_739, 0, x_737);
return x_739;
}
}
else
{
lean_object* x_740; lean_object* x_741; lean_object* x_742; 
lean_dec_ref(x_587);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_740 = lean_ctor_get(x_589, 0);
lean_inc(x_740);
if (lean_is_exclusive(x_589)) {
 lean_ctor_release(x_589, 0);
 x_741 = x_589;
} else {
 lean_dec_ref(x_589);
 x_741 = lean_box(0);
}
if (lean_is_scalar(x_741)) {
 x_742 = lean_alloc_ctor(1, 1, 0);
} else {
 x_742 = x_741;
}
lean_ctor_set(x_742, 0, x_740);
return x_742;
}
}
block_132:
{
lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; 
lean_inc_ref(x_22);
x_44 = l_Array_append___redArg(x_22, x_43);
lean_dec_ref(x_43);
lean_inc(x_18);
lean_inc(x_13);
x_45 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_45, 0, x_13);
lean_ctor_set(x_45, 1, x_18);
lean_ctor_set(x_45, 2, x_44);
lean_inc_n(x_28, 6);
lean_inc(x_40);
lean_inc(x_13);
x_46 = l_Lean_Syntax_node7(x_13, x_40, x_45, x_28, x_28, x_28, x_28, x_28, x_28);
x_47 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__9;
lean_inc_ref(x_23);
lean_inc_ref(x_27);
lean_inc_ref(x_33);
x_48 = l_Lean_Name_mkStr4(x_33, x_27, x_23, x_47);
lean_inc(x_13);
x_49 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_49, 0, x_13);
lean_ctor_set(x_49, 1, x_47);
x_50 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__10;
lean_inc_ref(x_23);
lean_inc_ref(x_27);
lean_inc_ref(x_33);
x_51 = l_Lean_Name_mkStr4(x_33, x_27, x_23, x_50);
x_52 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__11;
x_53 = lean_box(2);
lean_inc(x_18);
x_54 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_54, 0, x_53);
lean_ctor_set(x_54, 1, x_18);
lean_ctor_set(x_54, 2, x_52);
x_55 = lean_mk_empty_array_with_capacity(x_15);
lean_inc(x_38);
x_56 = lean_array_push(x_55, x_38);
x_57 = lean_array_push(x_56, x_54);
lean_inc(x_51);
x_58 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_58, 0, x_53);
lean_ctor_set(x_58, 1, x_51);
lean_ctor_set(x_58, 2, x_57);
x_59 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__13;
lean_inc_ref(x_23);
lean_inc_ref(x_27);
lean_inc_ref(x_33);
x_60 = l_Lean_Name_mkStr4(x_33, x_27, x_23, x_59);
x_61 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__57;
lean_inc_ref(x_26);
lean_inc_ref(x_27);
lean_inc_ref(x_33);
x_62 = l_Lean_Name_mkStr4(x_33, x_27, x_26, x_61);
lean_inc(x_32);
lean_inc(x_62);
lean_inc(x_13);
x_63 = l_Lean_Syntax_node2(x_13, x_62, x_32, x_42);
lean_inc(x_18);
lean_inc(x_13);
x_64 = l_Lean_Syntax_node1(x_13, x_18, x_63);
lean_inc(x_28);
lean_inc(x_60);
lean_inc(x_13);
x_65 = l_Lean_Syntax_node2(x_13, x_60, x_28, x_64);
x_66 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__60;
lean_inc_ref(x_23);
lean_inc_ref(x_27);
lean_inc_ref(x_33);
x_67 = l_Lean_Name_mkStr4(x_33, x_27, x_23, x_66);
x_68 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__1;
x_69 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__2;
lean_inc_ref(x_25);
x_70 = l_Lean_Name_mkStr3(x_25, x_20, x_69);
lean_inc(x_31);
lean_inc(x_70);
lean_inc(x_19);
x_71 = l_Lean_addMacroScope(x_19, x_70, x_31);
lean_inc(x_17);
x_72 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_72, 0, x_70);
lean_ctor_set(x_72, 1, x_17);
lean_inc(x_29);
x_73 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_73, 0, x_72);
lean_ctor_set(x_73, 1, x_29);
lean_inc(x_13);
x_74 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_74, 0, x_13);
lean_ctor_set(x_74, 1, x_68);
lean_ctor_set(x_74, 2, x_71);
lean_ctor_set(x_74, 3, x_73);
lean_inc(x_18);
lean_inc(x_13);
x_75 = l_Lean_Syntax_node4(x_13, x_18, x_41, x_36, x_39, x_14);
lean_inc(x_13);
x_76 = l_Lean_Syntax_node2(x_13, x_37, x_74, x_75);
x_77 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__62;
x_78 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__63;
lean_inc_ref(x_27);
lean_inc_ref(x_33);
x_79 = l_Lean_Name_mkStr4(x_33, x_27, x_77, x_78);
lean_inc_n(x_28, 2);
lean_inc(x_13);
x_80 = l_Lean_Syntax_node2(x_13, x_79, x_28, x_28);
lean_inc(x_28);
lean_inc(x_80);
lean_inc(x_30);
lean_inc(x_67);
lean_inc(x_13);
x_81 = l_Lean_Syntax_node4(x_13, x_67, x_30, x_76, x_80, x_28);
lean_inc(x_13);
x_82 = l_Lean_Syntax_node4(x_13, x_48, x_49, x_58, x_65, x_81);
lean_inc(x_21);
lean_inc(x_13);
x_83 = l_Lean_Syntax_node2(x_13, x_21, x_46, x_82);
x_84 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__5;
lean_inc_ref(x_26);
lean_inc_ref(x_27);
lean_inc_ref(x_33);
x_85 = l_Lean_Name_mkStr4(x_33, x_27, x_26, x_84);
x_86 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__6;
lean_inc(x_13);
x_87 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_87, 0, x_13);
lean_ctor_set(x_87, 1, x_86);
x_88 = l_Lean_Syntax_SepArray_ofElems(x_24, x_34);
lean_dec_ref(x_34);
x_89 = l_Array_append___redArg(x_22, x_88);
lean_dec_ref(x_88);
lean_inc(x_18);
lean_inc(x_13);
x_90 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_90, 0, x_13);
lean_ctor_set(x_90, 1, x_18);
lean_ctor_set(x_90, 2, x_89);
x_91 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__8;
lean_inc(x_13);
x_92 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_92, 0, x_13);
lean_ctor_set(x_92, 1, x_91);
lean_inc(x_13);
x_93 = l_Lean_Syntax_node3(x_13, x_85, x_87, x_90, x_92);
lean_inc(x_18);
lean_inc(x_13);
x_94 = l_Lean_Syntax_node1(x_13, x_18, x_93);
lean_inc_n(x_28, 6);
lean_inc(x_13);
x_95 = l_Lean_Syntax_node7(x_13, x_40, x_28, x_94, x_28, x_28, x_28, x_28, x_28);
x_96 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__0;
lean_inc_ref(x_27);
lean_inc_ref(x_33);
x_97 = l_Lean_Name_mkStr4(x_33, x_27, x_23, x_96);
x_98 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__1;
lean_inc(x_13);
x_99 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_99, 0, x_13);
lean_ctor_set(x_99, 1, x_98);
x_100 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__3;
x_101 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__4;
lean_inc(x_31);
lean_inc(x_19);
x_102 = l_Lean_addMacroScope(x_19, x_101, x_31);
lean_inc(x_29);
lean_inc(x_13);
x_103 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_103, 0, x_13);
lean_ctor_set(x_103, 1, x_100);
lean_ctor_set(x_103, 2, x_102);
lean_ctor_set(x_103, 3, x_29);
lean_inc(x_28);
lean_inc(x_13);
x_104 = l_Lean_Syntax_node2(x_13, x_51, x_103, x_28);
x_105 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__5;
x_106 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__6;
x_107 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__7;
lean_inc(x_31);
lean_inc(x_19);
x_108 = l_Lean_addMacroScope(x_19, x_107, x_31);
x_109 = l_Lean_Name_mkStr2(x_25, x_105);
lean_inc(x_109);
x_110 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_110, 0, x_109);
lean_ctor_set(x_110, 1, x_17);
x_111 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_111, 0, x_109);
lean_inc(x_29);
x_112 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_112, 0, x_111);
lean_ctor_set(x_112, 1, x_29);
x_113 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_113, 0, x_110);
lean_ctor_set(x_113, 1, x_112);
lean_inc(x_13);
x_114 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_114, 0, x_13);
lean_ctor_set(x_114, 1, x_106);
lean_ctor_set(x_114, 2, x_108);
lean_ctor_set(x_114, 3, x_113);
lean_inc(x_13);
x_115 = l_Lean_Syntax_node2(x_13, x_62, x_32, x_114);
lean_inc(x_18);
lean_inc(x_13);
x_116 = l_Lean_Syntax_node1(x_13, x_18, x_115);
lean_inc(x_28);
lean_inc(x_13);
x_117 = l_Lean_Syntax_node2(x_13, x_60, x_28, x_116);
x_118 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__10;
x_119 = l_Lean_Name_mkStr4(x_33, x_27, x_26, x_118);
x_120 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__11;
lean_inc(x_13);
x_121 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_121, 0, x_13);
lean_ctor_set(x_121, 1, x_120);
x_122 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__13;
x_123 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__14;
x_124 = l_Lean_addMacroScope(x_19, x_123, x_31);
lean_inc(x_13);
x_125 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_125, 0, x_13);
lean_ctor_set(x_125, 1, x_122);
lean_ctor_set(x_125, 2, x_124);
lean_ctor_set(x_125, 3, x_29);
lean_inc(x_13);
x_126 = l_Lean_Syntax_node3(x_13, x_119, x_38, x_121, x_125);
lean_inc(x_28);
lean_inc(x_13);
x_127 = l_Lean_Syntax_node4(x_13, x_67, x_30, x_126, x_80, x_28);
lean_inc(x_13);
x_128 = l_Lean_Syntax_node5(x_13, x_97, x_99, x_104, x_117, x_127, x_28);
lean_inc(x_13);
x_129 = l_Lean_Syntax_node2(x_13, x_21, x_95, x_128);
x_130 = l_Lean_Syntax_node3(x_13, x_18, x_16, x_83, x_129);
x_131 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_131, 0, x_130);
return x_131;
}
block_230:
{
lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; 
x_150 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_151 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__27;
lean_inc_ref(x_144);
lean_inc(x_138);
lean_inc(x_133);
x_152 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_152, 0, x_133);
lean_ctor_set(x_152, 1, x_138);
lean_ctor_set(x_152, 2, x_144);
x_153 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__28;
lean_inc(x_133);
x_154 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_154, 0, x_133);
lean_ctor_set(x_154, 1, x_153);
x_155 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__39;
lean_inc(x_133);
x_156 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_156, 0, x_133);
lean_ctor_set(x_156, 1, x_155);
x_157 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__30;
x_158 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__31;
lean_inc(x_137);
lean_inc(x_148);
x_159 = l_Lean_addMacroScope(x_148, x_158, x_137);
x_160 = lean_box(0);
x_161 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__3;
lean_inc(x_136);
x_162 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_162, 0, x_161);
lean_ctor_set(x_162, 1, x_136);
lean_inc(x_133);
x_163 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_163, 0, x_133);
lean_ctor_set(x_163, 1, x_157);
lean_ctor_set(x_163, 2, x_159);
lean_ctor_set(x_163, 3, x_162);
x_164 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__35;
lean_inc_ref(x_145);
lean_inc_ref(x_146);
lean_inc_ref(x_139);
x_165 = l_Lean_Name_mkStr4(x_139, x_146, x_145, x_164);
x_166 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__22;
lean_inc_ref(x_145);
lean_inc_ref(x_146);
lean_inc_ref(x_139);
x_167 = l_Lean_Name_mkStr4(x_139, x_146, x_145, x_166);
x_168 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__23;
lean_inc(x_133);
x_169 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_169, 0, x_133);
lean_ctor_set(x_169, 1, x_168);
x_170 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__25;
x_171 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__27;
x_172 = lean_box(0);
lean_inc(x_137);
lean_inc(x_148);
x_173 = l_Lean_addMacroScope(x_148, x_172, x_137);
x_174 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_175 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__29;
x_176 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__59;
lean_inc_ref(x_146);
lean_inc_ref(x_139);
x_177 = l_Lean_Name_mkStr3(x_139, x_146, x_176);
x_178 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_178, 0, x_177);
x_179 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__30;
lean_inc_ref(x_139);
x_180 = l_Lean_Name_mkStr3(x_139, x_179, x_176);
x_181 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_181, 0, x_180);
lean_inc_ref(x_139);
x_182 = l_Lean_Name_mkStr2(x_139, x_179);
x_183 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_183, 0, x_182);
lean_inc_ref(x_146);
lean_inc_ref(x_139);
x_184 = l_Lean_Name_mkStr2(x_139, x_146);
x_185 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_185, 0, x_184);
lean_inc_ref(x_139);
x_186 = l_Lean_Name_mkStr1(x_139);
x_187 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_187, 0, x_186);
lean_inc(x_136);
x_188 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_188, 0, x_187);
lean_ctor_set(x_188, 1, x_136);
x_189 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_189, 0, x_185);
lean_ctor_set(x_189, 1, x_188);
x_190 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_190, 0, x_183);
lean_ctor_set(x_190, 1, x_189);
x_191 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_191, 0, x_181);
lean_ctor_set(x_191, 1, x_190);
x_192 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_192, 0, x_178);
lean_ctor_set(x_192, 1, x_191);
x_193 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_193, 0, x_175);
lean_ctor_set(x_193, 1, x_192);
lean_inc(x_133);
x_194 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_194, 0, x_133);
lean_ctor_set(x_194, 1, x_171);
lean_ctor_set(x_194, 2, x_173);
lean_ctor_set(x_194, 3, x_193);
lean_inc(x_133);
x_195 = l_Lean_Syntax_node1(x_133, x_170, x_194);
lean_inc(x_133);
x_196 = l_Lean_Syntax_node2(x_133, x_167, x_169, x_195);
x_197 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__37;
x_198 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__38;
lean_inc(x_133);
x_199 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_199, 0, x_133);
lean_ctor_set(x_199, 1, x_198);
lean_inc(x_133);
x_200 = l_Lean_Syntax_node1(x_133, x_197, x_199);
x_201 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__7;
lean_inc(x_133);
x_202 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_202, 0, x_133);
lean_ctor_set(x_202, 1, x_201);
lean_inc(x_141);
lean_inc(x_138);
lean_inc(x_133);
x_203 = l_Lean_Syntax_node1(x_133, x_138, x_141);
lean_inc(x_200);
lean_inc(x_138);
lean_inc(x_133);
x_204 = l_Lean_Syntax_node3(x_133, x_138, x_200, x_202, x_203);
x_205 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__34;
lean_inc(x_133);
x_206 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_206, 0, x_133);
lean_ctor_set(x_206, 1, x_205);
lean_inc(x_133);
x_207 = l_Lean_Syntax_node3(x_133, x_165, x_196, x_204, x_206);
x_208 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__14;
lean_inc(x_133);
x_209 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_209, 0, x_133);
lean_ctor_set(x_209, 1, x_208);
x_210 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__15;
lean_inc_ref(x_145);
lean_inc_ref(x_146);
lean_inc_ref(x_139);
x_211 = l_Lean_Name_mkStr4(x_139, x_146, x_145, x_210);
x_212 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__5;
x_213 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__6;
lean_inc(x_137);
lean_inc(x_148);
x_214 = l_Lean_addMacroScope(x_148, x_213, x_137);
x_215 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__8;
x_216 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__9;
lean_inc(x_136);
x_217 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_217, 0, x_216);
lean_ctor_set(x_217, 1, x_136);
x_218 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_218, 0, x_215);
lean_ctor_set(x_218, 1, x_217);
lean_inc(x_133);
x_219 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_219, 0, x_133);
lean_ctor_set(x_219, 1, x_212);
lean_ctor_set(x_219, 2, x_214);
lean_ctor_set(x_219, 3, x_218);
lean_inc(x_143);
lean_inc(x_138);
lean_inc(x_133);
x_220 = l_Lean_Syntax_node1(x_133, x_138, x_143);
lean_inc(x_211);
lean_inc(x_133);
x_221 = l_Lean_Syntax_node2(x_133, x_211, x_219, x_220);
lean_inc_ref(x_209);
lean_inc_ref(x_156);
lean_inc(x_142);
lean_inc_ref(x_152);
lean_inc(x_133);
x_222 = l_Lean_Syntax_node8(x_133, x_151, x_152, x_154, x_142, x_156, x_163, x_207, x_209, x_221);
x_223 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__40;
lean_inc_ref(x_146);
lean_inc_ref(x_139);
x_224 = l_Lean_Name_mkStr4(x_139, x_146, x_176, x_223);
x_225 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__41;
lean_inc_ref(x_146);
lean_inc_ref(x_139);
x_226 = l_Lean_Name_mkStr4(x_139, x_146, x_176, x_225);
if (lean_obj_tag(x_6) == 1)
{
lean_object* x_227; lean_object* x_228; 
x_227 = lean_ctor_get(x_6, 0);
lean_inc(x_227);
lean_dec_ref(x_6);
x_228 = l_Array_mkArray1___redArg(x_227);
x_13 = x_133;
x_14 = x_134;
x_15 = x_135;
x_16 = x_222;
x_17 = x_160;
x_18 = x_138;
x_19 = x_148;
x_20 = x_174;
x_21 = x_224;
x_22 = x_144;
x_23 = x_176;
x_24 = x_201;
x_25 = x_150;
x_26 = x_145;
x_27 = x_146;
x_28 = x_152;
x_29 = x_136;
x_30 = x_209;
x_31 = x_137;
x_32 = x_156;
x_33 = x_139;
x_34 = x_140;
x_35 = lean_box(0);
x_36 = x_141;
x_37 = x_211;
x_38 = x_142;
x_39 = x_143;
x_40 = x_226;
x_41 = x_200;
x_42 = x_147;
x_43 = x_228;
goto block_132;
}
else
{
lean_object* x_229; 
lean_dec(x_6);
x_229 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__35;
x_13 = x_133;
x_14 = x_134;
x_15 = x_135;
x_16 = x_222;
x_17 = x_160;
x_18 = x_138;
x_19 = x_148;
x_20 = x_174;
x_21 = x_224;
x_22 = x_144;
x_23 = x_176;
x_24 = x_201;
x_25 = x_150;
x_26 = x_145;
x_27 = x_146;
x_28 = x_152;
x_29 = x_136;
x_30 = x_209;
x_31 = x_137;
x_32 = x_156;
x_33 = x_139;
x_34 = x_140;
x_35 = lean_box(0);
x_36 = x_141;
x_37 = x_211;
x_38 = x_142;
x_39 = x_143;
x_40 = x_226;
x_41 = x_200;
x_42 = x_147;
x_43 = x_229;
goto block_132;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___lam__0(x_1, x_2);
lean_dec(x_2);
lean_dec_ref(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
_start:
{
lean_object* x_13; 
x_13 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
lean_dec_ref(x_4);
return x_13;
}
}
static lean_object* _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_Command_instInhabitedScope_default;
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_pp_macroStack;
return x_1;
}
}
LEAN_EXPORT uint8_t l_Lean_Option_get___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_ctor_get(x_2, 1);
x_5 = l_Lean_KVMap_find(x_1, x_3);
if (lean_obj_tag(x_5) == 0)
{
uint8_t x_6; 
x_6 = lean_unbox(x_4);
return x_6;
}
else
{
lean_object* x_7; 
x_7 = lean_ctor_get(x_5, 0);
lean_inc(x_7);
lean_dec_ref(x_5);
if (lean_obj_tag(x_7) == 1)
{
uint8_t x_8; 
x_8 = lean_ctor_get_uint8(x_7, 0);
lean_dec_ref(x_7);
return x_8;
}
else
{
uint8_t x_9; 
lean_dec(x_7);
x_9 = lean_unbox(x_4);
return x_9;
}
}
}
}
static lean_object* _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(1);
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("with resulting expansion", 24, 24);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__3;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__4;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
static lean_object* _init_l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__2___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("while expanding", 15, 15);
return x_1;
}
}
static lean_object* _init_l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__2___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__2___closed__0;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__2___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__2___closed__1;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_dec_ref(x_1);
return x_2;
}
else
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; uint8_t x_6; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = !lean_is_exclusive(x_5);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_7 = lean_ctor_get(x_3, 1);
x_8 = lean_ctor_get(x_5, 0);
x_9 = lean_ctor_get(x_5, 1);
lean_dec(x_9);
lean_inc_ref(x_1);
lean_ctor_set_tag(x_5, 7);
lean_ctor_set(x_5, 1, x_1);
lean_ctor_set(x_5, 0, x_2);
x_10 = l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__2___closed__2;
lean_ctor_set_tag(x_3, 7);
lean_ctor_set(x_3, 1, x_10);
x_11 = l_Lean_MessageData_ofSyntax(x_8);
x_12 = l_Lean_indentD(x_11);
x_13 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_13, 0, x_3);
lean_ctor_set(x_13, 1, x_12);
x_2 = x_13;
x_3 = x_7;
goto _start;
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_15 = lean_ctor_get(x_3, 1);
x_16 = lean_ctor_get(x_5, 0);
lean_inc(x_16);
lean_dec(x_5);
lean_inc_ref(x_1);
x_17 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_17, 0, x_2);
lean_ctor_set(x_17, 1, x_1);
x_18 = l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__2___closed__2;
lean_ctor_set_tag(x_3, 7);
lean_ctor_set(x_3, 1, x_18);
lean_ctor_set(x_3, 0, x_17);
x_19 = l_Lean_MessageData_ofSyntax(x_16);
x_20 = l_Lean_indentD(x_19);
x_21 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_21, 0, x_3);
lean_ctor_set(x_21, 1, x_20);
x_2 = x_21;
x_3 = x_15;
goto _start;
}
}
else
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_23 = lean_ctor_get(x_3, 0);
x_24 = lean_ctor_get(x_3, 1);
lean_inc(x_24);
lean_inc(x_23);
lean_dec(x_3);
x_25 = lean_ctor_get(x_23, 0);
lean_inc(x_25);
if (lean_is_exclusive(x_23)) {
 lean_ctor_release(x_23, 0);
 lean_ctor_release(x_23, 1);
 x_26 = x_23;
} else {
 lean_dec_ref(x_23);
 x_26 = lean_box(0);
}
lean_inc_ref(x_1);
if (lean_is_scalar(x_26)) {
 x_27 = lean_alloc_ctor(7, 2, 0);
} else {
 x_27 = x_26;
 lean_ctor_set_tag(x_27, 7);
}
lean_ctor_set(x_27, 0, x_2);
lean_ctor_set(x_27, 1, x_1);
x_28 = l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__2___closed__2;
x_29 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_29, 0, x_27);
lean_ctor_set(x_29, 1, x_28);
x_30 = l_Lean_MessageData_ofSyntax(x_25);
x_31 = l_Lean_indentD(x_30);
x_32 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_32, 0, x_29);
lean_ctor_set(x_32, 1, x_31);
x_2 = x_32;
x_3 = x_24;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_5 = lean_st_ref_get(x_3);
x_6 = lean_ctor_get(x_5, 2);
lean_inc(x_6);
lean_dec(x_5);
x_7 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__0;
x_8 = l_List_head_x21___redArg(x_7, x_6);
lean_dec(x_6);
x_9 = lean_ctor_get(x_8, 1);
lean_inc(x_9);
lean_dec(x_8);
x_10 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__1;
x_11 = l_Lean_Option_get___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__1(x_9, x_10);
lean_dec(x_9);
if (x_11 == 0)
{
lean_object* x_12; 
lean_dec(x_2);
x_12 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_12, 0, x_1);
return x_12;
}
else
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_13; 
x_13 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_13, 0, x_1);
return x_13;
}
else
{
lean_object* x_14; uint8_t x_15; 
x_14 = lean_ctor_get(x_2, 0);
lean_inc(x_14);
x_15 = !lean_is_exclusive(x_14);
if (x_15 == 0)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_16 = lean_ctor_get(x_14, 1);
x_17 = lean_ctor_get(x_14, 0);
lean_dec(x_17);
x_18 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__2;
lean_ctor_set_tag(x_14, 7);
lean_ctor_set(x_14, 1, x_18);
lean_ctor_set(x_14, 0, x_1);
x_19 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__5;
x_20 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_20, 0, x_14);
lean_ctor_set(x_20, 1, x_19);
x_21 = l_Lean_MessageData_ofSyntax(x_16);
x_22 = l_Lean_indentD(x_21);
x_23 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_23, 0, x_20);
lean_ctor_set(x_23, 1, x_22);
x_24 = l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__2(x_18, x_23, x_2);
x_25 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_25, 0, x_24);
return x_25;
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_26 = lean_ctor_get(x_14, 1);
lean_inc(x_26);
lean_dec(x_14);
x_27 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__2;
x_28 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_28, 0, x_1);
lean_ctor_set(x_28, 1, x_27);
x_29 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__5;
x_30 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_30, 0, x_28);
lean_ctor_set(x_30, 1, x_29);
x_31 = l_Lean_MessageData_ofSyntax(x_26);
x_32 = l_Lean_indentD(x_31);
x_33 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_33, 0, x_30);
lean_ctor_set(x_33, 1, x_32);
x_34 = l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__2(x_27, x_33, x_2);
x_35 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_35, 0, x_34);
return x_35;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg(x_1, x_2, x_4);
return x_6;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0));
return x_1;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__0;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__1;
x_2 = lean_unsigned_to_nat(0u);
x_3 = lean_alloc_ctor(0, 9, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_2);
lean_ctor_set(x_3, 2, x_2);
lean_ctor_set(x_3, 3, x_1);
lean_ctor_set(x_3, 4, x_1);
lean_ctor_set(x_3, 5, x_1);
lean_ctor_set(x_3, 6, x_1);
lean_ctor_set(x_3, 7, x_1);
lean_ctor_set(x_3, 8, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(32u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__3;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__5() {
_start:
{
size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = 5;
x_2 = lean_unsigned_to_nat(0u);
x_3 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__3;
x_4 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__4;
x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_3);
lean_ctor_set(x_5, 2, x_2);
lean_ctor_set(x_5, 3, x_2);
lean_ctor_set_usize(x_5, 4, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = lean_box(1);
x_2 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__5;
x_3 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__1;
x_4 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_4 = lean_st_ref_get(x_2);
x_5 = lean_ctor_get(x_4, 0);
lean_inc_ref(x_5);
lean_dec(x_4);
x_6 = lean_st_ref_get(x_2);
x_7 = lean_ctor_get(x_6, 2);
lean_inc(x_7);
lean_dec(x_6);
x_8 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__0;
x_9 = l_List_head_x21___redArg(x_8, x_7);
lean_dec(x_7);
x_10 = lean_ctor_get(x_9, 1);
lean_inc(x_10);
lean_dec(x_9);
x_11 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__2;
x_12 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__6;
x_13 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_13, 0, x_5);
lean_ctor_set(x_13, 1, x_11);
lean_ctor_set(x_13, 2, x_12);
lean_ctor_set(x_13, 3, x_10);
x_14 = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(x_14, 0, x_13);
lean_ctor_set(x_14, 1, x_1);
x_15 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_15, 0, x_14);
return x_15;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg(x_1, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___redArg(lean_object* x_1) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_3 = lean_st_ref_get(x_1);
x_4 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_4);
lean_dec(x_3);
x_5 = l_Lean_Environment_header(x_4);
lean_dec_ref(x_4);
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
lean_dec_ref(x_5);
x_7 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_7, 0, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___redArg(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_mkIdentFromRef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__8___redArg(lean_object* x_1, uint8_t x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_Command_getRef___redArg(x_3);
if (lean_obj_tag(x_5) == 0)
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_5);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; 
x_7 = lean_ctor_get(x_5, 0);
x_8 = l_Lean_mkIdentFrom(x_7, x_1, x_2);
lean_dec(x_7);
lean_ctor_set(x_5, 0, x_8);
return x_5;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_9 = lean_ctor_get(x_5, 0);
lean_inc(x_9);
lean_dec(x_5);
x_10 = l_Lean_mkIdentFrom(x_9, x_1, x_2);
lean_dec(x_9);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
uint8_t x_12; 
lean_dec(x_1);
x_12 = !lean_is_exclusive(x_5);
if (x_12 == 0)
{
return x_5;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_5, 0);
lean_inc(x_13);
lean_dec(x_5);
x_14 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_mkIdentFromRef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__8(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_mkIdentFromRef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__8___redArg(x_1, x_2, x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_Command_getRef___redArg(x_2);
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
lean_dec_ref(x_5);
x_7 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg(x_1, x_3);
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
lean_dec_ref(x_7);
x_9 = lean_ctor_get(x_2, 4);
lean_inc(x_9);
lean_dec_ref(x_2);
lean_inc(x_9);
x_10 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg(x_8, x_9, x_3);
x_11 = !lean_is_exclusive(x_10);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_12 = lean_ctor_get(x_10, 0);
x_13 = l_Lean_Elab_getBetterRef(x_6, x_9);
lean_dec(x_6);
x_14 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_14, 0, x_13);
lean_ctor_set(x_14, 1, x_12);
lean_ctor_set_tag(x_10, 1);
lean_ctor_set(x_10, 0, x_14);
return x_10;
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_15 = lean_ctor_get(x_10, 0);
lean_inc(x_15);
lean_dec(x_10);
x_16 = l_Lean_Elab_getBetterRef(x_6, x_9);
lean_dec(x_6);
x_17 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_17, 0, x_16);
lean_ctor_set(x_17, 1, x_15);
x_18 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_18, 0, x_17);
return x_18;
}
}
else
{
uint8_t x_19; 
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_19 = !lean_is_exclusive(x_5);
if (x_19 == 0)
{
return x_5;
}
else
{
lean_object* x_20; lean_object* x_21; 
x_20 = lean_ctor_get(x_5, 0);
lean_inc(x_20);
lean_dec(x_5);
x_21 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_21, 0, x_20);
return x_21;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0___redArg(x_2, x_3, x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Elab_Command_getRef___redArg(x_3);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; uint8_t x_8; 
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
lean_dec_ref(x_6);
x_8 = !lean_is_exclusive(x_3);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_9 = lean_ctor_get(x_3, 7);
lean_dec(x_9);
x_10 = l_Lean_replaceRef(x_1, x_7);
lean_dec(x_7);
lean_ctor_set(x_3, 7, x_10);
x_11 = l_Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0___redArg(x_2, x_3, x_4);
return x_11;
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
x_12 = lean_ctor_get(x_3, 0);
x_13 = lean_ctor_get(x_3, 1);
x_14 = lean_ctor_get(x_3, 2);
x_15 = lean_ctor_get(x_3, 3);
x_16 = lean_ctor_get(x_3, 4);
x_17 = lean_ctor_get(x_3, 5);
x_18 = lean_ctor_get(x_3, 6);
x_19 = lean_ctor_get(x_3, 8);
x_20 = lean_ctor_get(x_3, 9);
x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*10);
lean_inc(x_20);
lean_inc(x_19);
lean_inc(x_18);
lean_inc(x_17);
lean_inc(x_16);
lean_inc(x_15);
lean_inc(x_14);
lean_inc(x_13);
lean_inc(x_12);
lean_dec(x_3);
x_22 = l_Lean_replaceRef(x_1, x_7);
lean_dec(x_7);
x_23 = lean_alloc_ctor(0, 10, 1);
lean_ctor_set(x_23, 0, x_12);
lean_ctor_set(x_23, 1, x_13);
lean_ctor_set(x_23, 2, x_14);
lean_ctor_set(x_23, 3, x_15);
lean_ctor_set(x_23, 4, x_16);
lean_ctor_set(x_23, 5, x_17);
lean_ctor_set(x_23, 6, x_18);
lean_ctor_set(x_23, 7, x_22);
lean_ctor_set(x_23, 8, x_19);
lean_ctor_set(x_23, 9, x_20);
lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_21);
x_24 = l_Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0___redArg(x_2, x_23, x_4);
return x_24;
}
}
else
{
uint8_t x_25; 
lean_dec_ref(x_3);
lean_dec_ref(x_2);
x_25 = !lean_is_exclusive(x_6);
if (x_25 == 0)
{
return x_6;
}
else
{
lean_object* x_26; lean_object* x_27; 
x_26 = lean_ctor_get(x_6, 0);
lean_inc(x_26);
lean_dec(x_6);
x_27 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_27, 0, x_26);
return x_27;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_2, x_3, x_4, x_5);
return x_7;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("leanLibCommand", 14, 14);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__0;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ill-formed lean_lib declaration", 31, 31);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__2;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("LeanLibConfig", 13, 13);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__4;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(3u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("where", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("whereStructInst", 15, 15);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__2;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__59;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55;
x_4 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("optConfig", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__4;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ill-formed configuration syntax", 31, 31);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__6;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("declValWhere", 12, 12);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__8;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("declValStruct", 13, 13);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__10;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("structVal", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__12;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__14() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("structInstFields", 16, 16);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__14;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55;
x_4 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_107; uint8_t x_108; 
x_83 = l_Lake_LeanLibConfig_instConfigInfo;
x_107 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__5;
lean_inc(x_4);
x_108 = l_Lean_Syntax_isOfKind(x_4, x_107);
if (x_108 == 0)
{
lean_object* x_109; lean_object* x_110; 
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_109 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_110 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_109, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_110;
}
else
{
lean_object* x_111; lean_object* x_112; uint8_t x_113; 
x_111 = lean_unsigned_to_nat(0u);
x_112 = l_Lean_Syntax_getArg(x_4, x_111);
lean_inc(x_112);
x_113 = l_Lean_Syntax_matchesNull(x_112, x_111);
if (x_113 == 0)
{
lean_object* x_114; uint8_t x_115; 
x_114 = lean_unsigned_to_nat(1u);
lean_inc(x_112);
x_115 = l_Lean_Syntax_matchesNull(x_112, x_114);
if (x_115 == 0)
{
lean_object* x_116; lean_object* x_117; 
lean_dec(x_112);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_116 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_117 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_116, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_117;
}
else
{
lean_object* x_118; lean_object* x_119; uint8_t x_120; 
x_118 = l_Lean_Syntax_getArg(x_112, x_111);
lean_dec(x_112);
x_119 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__9;
lean_inc(x_118);
x_120 = l_Lean_Syntax_isOfKind(x_118, x_119);
if (x_120 == 0)
{
lean_object* x_121; uint8_t x_122; 
x_121 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__11;
lean_inc(x_118);
x_122 = l_Lean_Syntax_isOfKind(x_118, x_121);
if (x_122 == 0)
{
lean_object* x_123; lean_object* x_124; 
lean_dec(x_118);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_123 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_124 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_123, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_124;
}
else
{
lean_object* x_125; lean_object* x_126; uint8_t x_127; 
x_125 = l_Lean_Syntax_getArg(x_118, x_111);
x_126 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__13;
lean_inc(x_125);
x_127 = l_Lean_Syntax_isOfKind(x_125, x_126);
if (x_127 == 0)
{
lean_object* x_128; lean_object* x_129; 
lean_dec(x_125);
lean_dec(x_118);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_128 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_129 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_128, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_129;
}
else
{
lean_object* x_130; lean_object* x_131; uint8_t x_132; 
x_130 = l_Lean_Syntax_getArg(x_125, x_114);
x_131 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__15;
lean_inc(x_130);
x_132 = l_Lean_Syntax_isOfKind(x_130, x_131);
if (x_132 == 0)
{
lean_object* x_133; lean_object* x_134; 
lean_dec(x_130);
lean_dec(x_125);
lean_dec(x_118);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_133 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_134 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_133, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_134;
}
else
{
lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_145; uint8_t x_146; 
x_135 = l_Lean_Syntax_getArg(x_125, x_111);
lean_dec(x_125);
x_136 = l_Lean_Syntax_getArg(x_130, x_111);
lean_dec(x_130);
x_145 = l_Lean_Syntax_getArg(x_118, x_114);
lean_dec(x_118);
x_146 = l_Lean_Syntax_isNone(x_145);
if (x_146 == 0)
{
uint8_t x_147; 
lean_inc(x_145);
x_147 = l_Lean_Syntax_matchesNull(x_145, x_114);
if (x_147 == 0)
{
lean_object* x_148; lean_object* x_149; 
lean_dec(x_145);
lean_dec(x_136);
lean_dec(x_135);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_148 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_149 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_148, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_149;
}
else
{
lean_object* x_150; lean_object* x_151; uint8_t x_152; 
x_150 = l_Lean_Syntax_getArg(x_145, x_111);
lean_dec(x_145);
x_151 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__66;
lean_inc(x_150);
x_152 = l_Lean_Syntax_isOfKind(x_150, x_151);
if (x_152 == 0)
{
lean_object* x_153; lean_object* x_154; 
lean_dec(x_150);
lean_dec(x_136);
lean_dec(x_135);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_153 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_154 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_153, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_154;
}
else
{
lean_object* x_155; 
x_155 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_155, 0, x_150);
x_137 = x_155;
x_138 = x_5;
x_139 = x_6;
x_140 = lean_box(0);
goto block_144;
}
}
}
else
{
lean_object* x_156; 
lean_dec(x_145);
x_156 = lean_box(0);
x_137 = x_156;
x_138 = x_5;
x_139 = x_6;
x_140 = lean_box(0);
goto block_144;
}
block_144:
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; 
x_141 = l_Lean_Syntax_getArgs(x_136);
lean_dec(x_136);
x_142 = l_Lean_Syntax_getHeadInfo(x_135);
lean_dec(x_135);
x_143 = l_Lean_Syntax_TSepArray_getElems___redArg(x_141);
lean_dec_ref(x_141);
x_84 = x_142;
x_85 = x_143;
x_86 = x_137;
x_87 = x_138;
x_88 = x_139;
x_89 = lean_box(0);
goto block_106;
}
}
}
}
}
else
{
lean_object* x_157; lean_object* x_158; uint8_t x_159; 
x_157 = l_Lean_Syntax_getArg(x_118, x_114);
x_158 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__15;
lean_inc(x_157);
x_159 = l_Lean_Syntax_isOfKind(x_157, x_158);
if (x_159 == 0)
{
lean_object* x_160; lean_object* x_161; 
lean_dec(x_157);
lean_dec(x_118);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_160 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_161 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_160, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_161;
}
else
{
lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_172; lean_object* x_173; uint8_t x_174; 
x_162 = l_Lean_Syntax_getArg(x_118, x_111);
x_163 = l_Lean_Syntax_getArg(x_157, x_111);
lean_dec(x_157);
x_172 = lean_unsigned_to_nat(2u);
x_173 = l_Lean_Syntax_getArg(x_118, x_172);
lean_dec(x_118);
x_174 = l_Lean_Syntax_isNone(x_173);
if (x_174 == 0)
{
uint8_t x_175; 
lean_inc(x_173);
x_175 = l_Lean_Syntax_matchesNull(x_173, x_114);
if (x_175 == 0)
{
lean_object* x_176; lean_object* x_177; 
lean_dec(x_173);
lean_dec(x_163);
lean_dec(x_162);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_176 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_177 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_176, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_177;
}
else
{
lean_object* x_178; lean_object* x_179; uint8_t x_180; 
x_178 = l_Lean_Syntax_getArg(x_173, x_111);
lean_dec(x_173);
x_179 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__66;
lean_inc(x_178);
x_180 = l_Lean_Syntax_isOfKind(x_178, x_179);
if (x_180 == 0)
{
lean_object* x_181; lean_object* x_182; 
lean_dec(x_178);
lean_dec(x_163);
lean_dec(x_162);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_181 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_182 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_181, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_182;
}
else
{
lean_object* x_183; 
x_183 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_183, 0, x_178);
x_164 = x_183;
x_165 = x_5;
x_166 = x_6;
x_167 = lean_box(0);
goto block_171;
}
}
}
else
{
lean_object* x_184; 
lean_dec(x_173);
x_184 = lean_box(0);
x_164 = x_184;
x_165 = x_5;
x_166 = x_6;
x_167 = lean_box(0);
goto block_171;
}
block_171:
{
lean_object* x_168; lean_object* x_169; lean_object* x_170; 
x_168 = l_Lean_Syntax_getArgs(x_163);
lean_dec(x_163);
x_169 = l_Lean_Syntax_getHeadInfo(x_162);
lean_dec(x_162);
x_170 = l_Lean_Syntax_TSepArray_getElems___redArg(x_168);
lean_dec_ref(x_168);
x_84 = x_169;
x_85 = x_170;
x_86 = x_164;
x_87 = x_165;
x_88 = x_166;
x_89 = lean_box(0);
goto block_106;
}
}
}
}
}
else
{
lean_object* x_185; lean_object* x_186; lean_object* x_187; 
lean_dec(x_112);
x_185 = lean_box(2);
x_186 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__11;
x_187 = lean_box(0);
x_84 = x_185;
x_85 = x_186;
x_86 = x_187;
x_87 = x_5;
x_88 = x_6;
x_89 = lean_box(0);
goto block_106;
}
}
block_51:
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; 
x_17 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__40;
lean_inc_ref(x_10);
lean_inc_ref(x_13);
lean_inc_ref(x_15);
x_18 = l_Lean_Name_mkStr4(x_15, x_13, x_10, x_17);
x_19 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__41;
lean_inc_ref(x_10);
lean_inc_ref(x_13);
lean_inc_ref(x_15);
x_20 = l_Lean_Name_mkStr4(x_15, x_13, x_10, x_19);
x_21 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__45;
x_22 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__46;
lean_inc(x_9);
x_23 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_23, 0, x_9);
lean_ctor_set(x_23, 1, x_21);
lean_ctor_set(x_23, 2, x_22);
lean_inc_ref_n(x_23, 7);
lean_inc(x_9);
x_24 = l_Lean_Syntax_node7(x_9, x_20, x_23, x_23, x_23, x_23, x_23, x_23, x_23);
x_25 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__0;
lean_inc_ref(x_10);
lean_inc_ref(x_13);
lean_inc_ref(x_15);
x_26 = l_Lean_Name_mkStr4(x_15, x_13, x_10, x_25);
x_27 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__1;
lean_inc(x_9);
x_28 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_28, 0, x_9);
lean_ctor_set(x_28, 1, x_27);
x_29 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__10;
lean_inc_ref(x_10);
lean_inc_ref(x_13);
lean_inc_ref(x_15);
x_30 = l_Lean_Name_mkStr4(x_15, x_13, x_10, x_29);
x_31 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__11;
lean_inc(x_8);
x_32 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_32, 0, x_8);
lean_ctor_set(x_32, 1, x_21);
lean_ctor_set(x_32, 2, x_31);
x_33 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__12;
x_34 = lean_array_push(x_33, x_2);
x_35 = lean_array_push(x_34, x_32);
x_36 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_36, 0, x_8);
lean_ctor_set(x_36, 1, x_30);
lean_ctor_set(x_36, 2, x_35);
x_37 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__13;
lean_inc_ref(x_13);
lean_inc_ref(x_15);
x_38 = l_Lean_Name_mkStr4(x_15, x_13, x_10, x_37);
x_39 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56;
x_40 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__57;
x_41 = l_Lean_Name_mkStr4(x_15, x_13, x_39, x_40);
x_42 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__39;
lean_inc(x_9);
x_43 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_43, 0, x_9);
lean_ctor_set(x_43, 1, x_42);
lean_inc(x_9);
x_44 = l_Lean_Syntax_node2(x_9, x_41, x_43, x_3);
lean_inc(x_9);
x_45 = l_Lean_Syntax_node1(x_9, x_21, x_44);
lean_inc_ref(x_23);
lean_inc(x_9);
x_46 = l_Lean_Syntax_node2(x_9, x_38, x_23, x_45);
lean_inc(x_9);
x_47 = l_Lean_Syntax_node5(x_9, x_26, x_28, x_36, x_46, x_14, x_23);
x_48 = l_Lean_Syntax_node2(x_9, x_18, x_24, x_47);
lean_inc(x_48);
x_49 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCommand___boxed), 4, 1);
lean_closure_set(x_49, 0, x_48);
x_50 = l_Lean_Elab_Command_withMacroExpansion___redArg(x_4, x_48, x_49, x_12, x_11);
return x_50;
}
block_82:
{
lean_object* x_62; 
x_62 = l_Lean_Elab_Command_getRef___redArg(x_58);
if (lean_obj_tag(x_62) == 0)
{
lean_object* x_63; lean_object* x_64; 
x_63 = lean_ctor_get(x_62, 0);
lean_inc(x_63);
lean_dec_ref(x_62);
x_64 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_58);
if (lean_obj_tag(x_64) == 0)
{
lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; lean_object* x_74; 
lean_dec_ref(x_64);
x_65 = lean_ctor_get(x_58, 5);
x_66 = l_Lean_mkOptionalNode(x_61);
x_67 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__0;
x_68 = lean_array_push(x_67, x_54);
x_69 = lean_array_push(x_68, x_55);
x_70 = lean_array_push(x_69, x_66);
x_71 = lean_box(2);
x_72 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_72, 0, x_71);
lean_ctor_set(x_72, 1, x_57);
lean_ctor_set(x_72, 2, x_70);
x_73 = 0;
x_74 = l_Lean_SourceInfo_fromRef(x_63, x_73);
lean_dec(x_63);
if (lean_obj_tag(x_65) == 0)
{
lean_object* x_75; 
x_75 = l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___redArg(x_56);
lean_dec_ref(x_75);
x_8 = x_71;
x_9 = x_74;
x_10 = x_52;
x_11 = x_56;
x_12 = x_58;
x_13 = x_59;
x_14 = x_72;
x_15 = x_60;
x_16 = lean_box(0);
goto block_51;
}
else
{
x_8 = x_71;
x_9 = x_74;
x_10 = x_52;
x_11 = x_56;
x_12 = x_58;
x_13 = x_59;
x_14 = x_72;
x_15 = x_60;
x_16 = lean_box(0);
goto block_51;
}
}
else
{
uint8_t x_76; 
lean_dec(x_63);
lean_dec(x_61);
lean_dec_ref(x_60);
lean_dec_ref(x_59);
lean_dec_ref(x_58);
lean_dec(x_57);
lean_dec(x_56);
lean_dec(x_55);
lean_dec(x_54);
lean_dec_ref(x_52);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_76 = !lean_is_exclusive(x_64);
if (x_76 == 0)
{
return x_64;
}
else
{
lean_object* x_77; lean_object* x_78; 
x_77 = lean_ctor_get(x_64, 0);
lean_inc(x_77);
lean_dec(x_64);
x_78 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_78, 0, x_77);
return x_78;
}
}
}
else
{
uint8_t x_79; 
lean_dec(x_61);
lean_dec_ref(x_60);
lean_dec_ref(x_59);
lean_dec_ref(x_58);
lean_dec(x_57);
lean_dec(x_56);
lean_dec(x_55);
lean_dec(x_54);
lean_dec_ref(x_52);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_79 = !lean_is_exclusive(x_62);
if (x_79 == 0)
{
return x_62;
}
else
{
lean_object* x_80; lean_object* x_81; 
x_80 = lean_ctor_get(x_62, 0);
lean_inc(x_80);
lean_dec(x_62);
x_81 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_81, 0, x_80);
return x_81;
}
}
}
block_106:
{
lean_object* x_90; lean_object* x_91; 
x_90 = lean_ctor_get(x_83, 1);
lean_inc(x_90);
lean_inc_ref(x_87);
x_91 = l___private_Lake_DSL_DeclUtil_0__Lake_DSL_mkConfigFields(x_1, x_90, x_85, x_87, x_88);
lean_dec_ref(x_85);
lean_dec(x_90);
if (lean_obj_tag(x_91) == 0)
{
lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; 
x_92 = lean_ctor_get(x_91, 0);
lean_inc(x_92);
lean_dec_ref(x_91);
x_93 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__1;
x_94 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_94, 0, x_84);
lean_ctor_set(x_94, 1, x_93);
x_95 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54;
x_96 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55;
x_97 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__59;
x_98 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__3;
if (lean_obj_tag(x_86) == 0)
{
lean_object* x_99; 
x_99 = lean_box(0);
x_52 = x_97;
x_53 = lean_box(0);
x_54 = x_94;
x_55 = x_92;
x_56 = x_88;
x_57 = x_98;
x_58 = x_87;
x_59 = x_96;
x_60 = x_95;
x_61 = x_99;
goto block_82;
}
else
{
uint8_t x_100; 
x_100 = !lean_is_exclusive(x_86);
if (x_100 == 0)
{
x_52 = x_97;
x_53 = lean_box(0);
x_54 = x_94;
x_55 = x_92;
x_56 = x_88;
x_57 = x_98;
x_58 = x_87;
x_59 = x_96;
x_60 = x_95;
x_61 = x_86;
goto block_82;
}
else
{
lean_object* x_101; lean_object* x_102; 
x_101 = lean_ctor_get(x_86, 0);
lean_inc(x_101);
lean_dec(x_86);
x_102 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_102, 0, x_101);
x_52 = x_97;
x_53 = lean_box(0);
x_54 = x_94;
x_55 = x_92;
x_56 = x_88;
x_57 = x_98;
x_58 = x_87;
x_59 = x_96;
x_60 = x_95;
x_61 = x_102;
goto block_82;
}
}
}
else
{
uint8_t x_103; 
lean_dec(x_88);
lean_dec_ref(x_87);
lean_dec(x_86);
lean_dec(x_84);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_103 = !lean_is_exclusive(x_91);
if (x_103 == 0)
{
return x_91;
}
else
{
lean_object* x_104; lean_object* x_105; 
x_104 = lean_ctor_get(x_91, 0);
lean_inc(x_104);
lean_dec(x_91);
x_105 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_105, 0, x_104);
return x_105;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_230; 
x_230 = l_Lean_Elab_Command_getRef___redArg(x_9);
if (lean_obj_tag(x_230) == 0)
{
lean_object* x_231; lean_object* x_232; 
x_231 = lean_ctor_get(x_230, 0);
lean_inc(x_231);
lean_dec_ref(x_230);
x_232 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_9);
if (lean_obj_tag(x_232) == 0)
{
lean_object* x_233; lean_object* x_234; uint8_t x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_320; lean_object* x_321; lean_object* x_322; 
x_233 = lean_ctor_get(x_232, 0);
lean_inc(x_233);
lean_dec_ref(x_232);
x_234 = lean_ctor_get(x_9, 5);
lean_inc(x_234);
x_235 = 0;
x_320 = l_Lean_SourceInfo_fromRef(x_231, x_235);
lean_dec(x_231);
if (lean_obj_tag(x_234) == 0)
{
lean_object* x_356; lean_object* x_357; 
x_356 = l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___redArg(x_10);
x_357 = lean_ctor_get(x_356, 0);
lean_inc(x_357);
lean_dec_ref(x_356);
x_321 = x_357;
x_322 = lean_box(0);
goto block_355;
}
else
{
lean_object* x_358; 
x_358 = lean_ctor_get(x_234, 0);
lean_inc(x_358);
x_321 = x_358;
x_322 = lean_box(0);
goto block_355;
}
block_283:
{
lean_object* x_252; 
x_252 = l_Lean_mkIdentFromRef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__8___redArg(x_4, x_235, x_9);
if (lean_obj_tag(x_252) == 0)
{
lean_object* x_253; lean_object* x_254; 
x_253 = lean_ctor_get(x_252, 0);
lean_inc(x_253);
lean_dec_ref(x_252);
x_254 = l_Lean_Elab_Command_getRef___redArg(x_9);
if (lean_obj_tag(x_254) == 0)
{
lean_object* x_255; lean_object* x_256; 
x_255 = lean_ctor_get(x_254, 0);
lean_inc(x_255);
lean_dec_ref(x_254);
x_256 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___lam__0(x_9, x_10);
if (lean_obj_tag(x_256) == 0)
{
lean_object* x_257; lean_object* x_258; 
x_257 = lean_ctor_get(x_256, 0);
lean_inc(x_257);
lean_dec_ref(x_256);
x_258 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_9);
lean_dec_ref(x_9);
if (lean_obj_tag(x_258) == 0)
{
lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; 
x_259 = lean_ctor_get(x_258, 0);
lean_inc(x_259);
lean_dec_ref(x_258);
lean_inc_ref(x_246);
lean_inc(x_237);
lean_inc(x_239);
x_260 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_260, 0, x_239);
lean_ctor_set(x_260, 1, x_237);
lean_ctor_set(x_260, 2, x_246);
lean_inc_ref(x_260);
lean_inc(x_239);
x_261 = l_Lean_Syntax_node1(x_239, x_244, x_260);
lean_inc(x_239);
x_262 = l_Lean_Syntax_node2(x_239, x_241, x_236, x_260);
x_263 = l_Lean_Syntax_node2(x_239, x_238, x_261, x_262);
x_264 = lean_unsigned_to_nat(2u);
x_265 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__12;
x_266 = lean_array_push(x_265, x_240);
x_267 = lean_array_push(x_266, x_263);
x_268 = l_Lake_DSL_expandAttrs(x_6);
x_269 = l_Array_append___redArg(x_267, x_268);
lean_dec_ref(x_268);
x_270 = l_Lake_Name_quoteFrom(x_255, x_3, x_235);
if (lean_obj_tag(x_234) == 0)
{
lean_object* x_271; lean_object* x_272; 
x_271 = l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___redArg(x_10);
lean_dec(x_10);
x_272 = lean_ctor_get(x_271, 0);
lean_inc(x_272);
lean_dec_ref(x_271);
x_132 = x_257;
x_133 = x_237;
x_134 = x_269;
x_135 = x_242;
x_136 = x_243;
x_137 = x_245;
x_138 = x_246;
x_139 = x_259;
x_140 = x_264;
x_141 = x_247;
x_142 = x_270;
x_143 = x_248;
x_144 = x_249;
x_145 = x_250;
x_146 = x_253;
x_147 = x_272;
x_148 = lean_box(0);
goto block_229;
}
else
{
lean_object* x_273; 
lean_dec(x_10);
x_273 = lean_ctor_get(x_234, 0);
lean_inc(x_273);
lean_dec_ref(x_234);
x_132 = x_257;
x_133 = x_237;
x_134 = x_269;
x_135 = x_242;
x_136 = x_243;
x_137 = x_245;
x_138 = x_246;
x_139 = x_259;
x_140 = x_264;
x_141 = x_247;
x_142 = x_270;
x_143 = x_248;
x_144 = x_249;
x_145 = x_250;
x_146 = x_253;
x_147 = x_273;
x_148 = lean_box(0);
goto block_229;
}
}
else
{
uint8_t x_274; 
lean_dec(x_257);
lean_dec(x_255);
lean_dec(x_253);
lean_dec_ref(x_250);
lean_dec_ref(x_249);
lean_dec(x_248);
lean_dec_ref(x_247);
lean_dec_ref(x_246);
lean_dec(x_245);
lean_dec(x_244);
lean_dec(x_243);
lean_dec(x_242);
lean_dec(x_241);
lean_dec(x_240);
lean_dec(x_239);
lean_dec(x_238);
lean_dec(x_237);
lean_dec(x_236);
lean_dec(x_234);
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_274 = !lean_is_exclusive(x_258);
if (x_274 == 0)
{
return x_258;
}
else
{
lean_object* x_275; lean_object* x_276; 
x_275 = lean_ctor_get(x_258, 0);
lean_inc(x_275);
lean_dec(x_258);
x_276 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_276, 0, x_275);
return x_276;
}
}
}
else
{
uint8_t x_277; 
lean_dec(x_255);
lean_dec(x_253);
lean_dec_ref(x_250);
lean_dec_ref(x_249);
lean_dec(x_248);
lean_dec_ref(x_247);
lean_dec_ref(x_246);
lean_dec(x_245);
lean_dec(x_244);
lean_dec(x_243);
lean_dec(x_242);
lean_dec(x_241);
lean_dec(x_240);
lean_dec(x_239);
lean_dec(x_238);
lean_dec(x_237);
lean_dec(x_236);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_277 = !lean_is_exclusive(x_256);
if (x_277 == 0)
{
return x_256;
}
else
{
lean_object* x_278; lean_object* x_279; 
x_278 = lean_ctor_get(x_256, 0);
lean_inc(x_278);
lean_dec(x_256);
x_279 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_279, 0, x_278);
return x_279;
}
}
}
else
{
uint8_t x_280; 
lean_dec(x_253);
lean_dec_ref(x_250);
lean_dec_ref(x_249);
lean_dec(x_248);
lean_dec_ref(x_247);
lean_dec_ref(x_246);
lean_dec(x_245);
lean_dec(x_244);
lean_dec(x_243);
lean_dec(x_242);
lean_dec(x_241);
lean_dec(x_240);
lean_dec(x_239);
lean_dec(x_238);
lean_dec(x_237);
lean_dec(x_236);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_280 = !lean_is_exclusive(x_254);
if (x_280 == 0)
{
return x_254;
}
else
{
lean_object* x_281; lean_object* x_282; 
x_281 = lean_ctor_get(x_254, 0);
lean_inc(x_281);
lean_dec(x_254);
x_282 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_282, 0, x_281);
return x_282;
}
}
}
else
{
lean_dec_ref(x_250);
lean_dec_ref(x_249);
lean_dec(x_248);
lean_dec_ref(x_247);
lean_dec_ref(x_246);
lean_dec(x_245);
lean_dec(x_244);
lean_dec(x_243);
lean_dec(x_242);
lean_dec(x_241);
lean_dec(x_240);
lean_dec(x_239);
lean_dec(x_238);
lean_dec(x_237);
lean_dec(x_236);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
return x_252;
}
}
block_319:
{
lean_object* x_293; 
x_293 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___lam__0(x_9, x_10);
if (lean_obj_tag(x_293) == 0)
{
lean_object* x_294; lean_object* x_295; 
x_294 = lean_ctor_get(x_293, 0);
lean_inc(x_294);
lean_dec_ref(x_293);
x_295 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_9);
if (lean_obj_tag(x_295) == 0)
{
lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; 
lean_dec_ref(x_295);
x_296 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54;
x_297 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55;
x_298 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56;
x_299 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__14;
x_300 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__15;
x_301 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__45;
x_302 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__46;
lean_inc(x_290);
x_303 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_303, 0, x_290);
lean_ctor_set(x_303, 1, x_301);
lean_ctor_set(x_303, 2, x_302);
lean_inc_ref(x_303);
lean_inc(x_290);
x_304 = l_Lean_Syntax_node1(x_290, x_300, x_303);
x_305 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__16;
x_306 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__23;
x_307 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__25;
x_308 = l_Lean_addMacroScope(x_291, x_307, x_288);
lean_inc(x_286);
lean_inc(x_290);
x_309 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_309, 0, x_290);
lean_ctor_set(x_309, 1, x_306);
lean_ctor_set(x_309, 2, x_308);
lean_ctor_set(x_309, 3, x_286);
lean_inc(x_290);
x_310 = l_Lean_Syntax_node2(x_290, x_305, x_309, x_303);
x_311 = l_Lean_Syntax_node2(x_290, x_299, x_304, x_310);
if (lean_obj_tag(x_234) == 0)
{
lean_object* x_312; 
x_312 = l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___redArg(x_10);
lean_dec_ref(x_312);
x_236 = x_284;
x_237 = x_301;
x_238 = x_299;
x_239 = x_294;
x_240 = x_311;
x_241 = x_305;
x_242 = x_286;
x_243 = x_285;
x_244 = x_300;
x_245 = x_287;
x_246 = x_302;
x_247 = x_296;
x_248 = x_289;
x_249 = x_297;
x_250 = x_298;
x_251 = lean_box(0);
goto block_283;
}
else
{
x_236 = x_284;
x_237 = x_301;
x_238 = x_299;
x_239 = x_294;
x_240 = x_311;
x_241 = x_305;
x_242 = x_286;
x_243 = x_285;
x_244 = x_300;
x_245 = x_287;
x_246 = x_302;
x_247 = x_296;
x_248 = x_289;
x_249 = x_297;
x_250 = x_298;
x_251 = lean_box(0);
goto block_283;
}
}
else
{
uint8_t x_313; 
lean_dec(x_294);
lean_dec(x_291);
lean_dec(x_290);
lean_dec(x_289);
lean_dec(x_288);
lean_dec(x_287);
lean_dec(x_286);
lean_dec(x_285);
lean_dec(x_284);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_313 = !lean_is_exclusive(x_295);
if (x_313 == 0)
{
return x_295;
}
else
{
lean_object* x_314; lean_object* x_315; 
x_314 = lean_ctor_get(x_295, 0);
lean_inc(x_314);
lean_dec(x_295);
x_315 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_315, 0, x_314);
return x_315;
}
}
}
else
{
uint8_t x_316; 
lean_dec(x_291);
lean_dec(x_290);
lean_dec(x_289);
lean_dec(x_288);
lean_dec(x_287);
lean_dec(x_286);
lean_dec(x_285);
lean_dec(x_284);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_316 = !lean_is_exclusive(x_293);
if (x_316 == 0)
{
return x_293;
}
else
{
lean_object* x_317; lean_object* x_318; 
x_317 = lean_ctor_get(x_293, 0);
lean_inc(x_317);
lean_dec(x_293);
x_318 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_318, 0, x_317);
return x_318;
}
}
}
block_355:
{
lean_object* x_323; 
lean_inc(x_10);
lean_inc_ref(x_9);
x_323 = l_Lake_DSL_mkConfigDeclIdent(x_7, x_9, x_10);
if (lean_obj_tag(x_323) == 0)
{
lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; 
x_324 = lean_ctor_get(x_323, 0);
lean_inc(x_324);
lean_dec_ref(x_323);
x_325 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__18;
x_326 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__19;
x_327 = l_Lean_addMacroScope(x_321, x_326, x_233);
x_328 = lean_box(0);
x_329 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_329, 0, x_320);
lean_ctor_set(x_329, 1, x_325);
lean_ctor_set(x_329, 2, x_327);
lean_ctor_set(x_329, 3, x_328);
x_330 = l_Lean_TSyntax_getId(x_324);
lean_inc(x_324);
x_331 = l_Lake_Name_quoteFrom(x_324, x_330, x_235);
x_332 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__53;
lean_inc(x_331);
x_333 = lean_array_push(x_332, x_331);
lean_inc(x_1);
x_334 = l_Lean_Syntax_mkCApp(x_1, x_333);
lean_inc(x_10);
lean_inc_ref(x_9);
lean_inc_ref(x_329);
x_335 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6(x_1, x_329, x_334, x_8, x_9, x_10);
if (lean_obj_tag(x_335) == 0)
{
lean_object* x_336; 
lean_dec_ref(x_335);
x_336 = l_Lean_mkIdentFromRef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__8___redArg(x_2, x_235, x_9);
if (lean_obj_tag(x_336) == 0)
{
lean_object* x_337; lean_object* x_338; 
x_337 = lean_ctor_get(x_336, 0);
lean_inc(x_337);
lean_dec_ref(x_336);
x_338 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___lam__0(x_9, x_10);
if (lean_obj_tag(x_338) == 0)
{
lean_object* x_339; lean_object* x_340; 
x_339 = lean_ctor_get(x_338, 0);
lean_inc(x_339);
lean_dec_ref(x_338);
x_340 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_9);
if (lean_obj_tag(x_340) == 0)
{
if (lean_obj_tag(x_234) == 0)
{
lean_object* x_341; lean_object* x_342; lean_object* x_343; 
x_341 = lean_ctor_get(x_340, 0);
lean_inc(x_341);
lean_dec_ref(x_340);
x_342 = l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___redArg(x_10);
x_343 = lean_ctor_get(x_342, 0);
lean_inc(x_343);
lean_dec_ref(x_342);
x_284 = x_337;
x_285 = x_324;
x_286 = x_328;
x_287 = x_329;
x_288 = x_341;
x_289 = x_331;
x_290 = x_339;
x_291 = x_343;
x_292 = lean_box(0);
goto block_319;
}
else
{
lean_object* x_344; lean_object* x_345; 
x_344 = lean_ctor_get(x_340, 0);
lean_inc(x_344);
lean_dec_ref(x_340);
x_345 = lean_ctor_get(x_234, 0);
lean_inc(x_345);
x_284 = x_337;
x_285 = x_324;
x_286 = x_328;
x_287 = x_329;
x_288 = x_344;
x_289 = x_331;
x_290 = x_339;
x_291 = x_345;
x_292 = lean_box(0);
goto block_319;
}
}
else
{
uint8_t x_346; 
lean_dec(x_339);
lean_dec(x_337);
lean_dec(x_331);
lean_dec_ref(x_329);
lean_dec(x_324);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_346 = !lean_is_exclusive(x_340);
if (x_346 == 0)
{
return x_340;
}
else
{
lean_object* x_347; lean_object* x_348; 
x_347 = lean_ctor_get(x_340, 0);
lean_inc(x_347);
lean_dec(x_340);
x_348 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_348, 0, x_347);
return x_348;
}
}
}
else
{
uint8_t x_349; 
lean_dec(x_337);
lean_dec(x_331);
lean_dec_ref(x_329);
lean_dec(x_324);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_349 = !lean_is_exclusive(x_338);
if (x_349 == 0)
{
return x_338;
}
else
{
lean_object* x_350; lean_object* x_351; 
x_350 = lean_ctor_get(x_338, 0);
lean_inc(x_350);
lean_dec(x_338);
x_351 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_351, 0, x_350);
return x_351;
}
}
}
else
{
lean_dec(x_331);
lean_dec_ref(x_329);
lean_dec(x_324);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
return x_336;
}
}
else
{
uint8_t x_352; 
lean_dec(x_331);
lean_dec_ref(x_329);
lean_dec(x_324);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_352 = !lean_is_exclusive(x_335);
if (x_352 == 0)
{
return x_335;
}
else
{
lean_object* x_353; lean_object* x_354; 
x_353 = lean_ctor_get(x_335, 0);
lean_inc(x_353);
lean_dec(x_335);
x_354 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_354, 0, x_353);
return x_354;
}
}
}
else
{
lean_dec(x_321);
lean_dec(x_320);
lean_dec(x_234);
lean_dec(x_233);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_8);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_323;
}
}
}
else
{
uint8_t x_359; 
lean_dec(x_231);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_359 = !lean_is_exclusive(x_232);
if (x_359 == 0)
{
return x_232;
}
else
{
lean_object* x_360; lean_object* x_361; 
x_360 = lean_ctor_get(x_232, 0);
lean_inc(x_360);
lean_dec(x_232);
x_361 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_361, 0, x_360);
return x_361;
}
}
}
else
{
uint8_t x_362; 
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_362 = !lean_is_exclusive(x_230);
if (x_362 == 0)
{
return x_230;
}
else
{
lean_object* x_363; lean_object* x_364; 
x_363 = lean_ctor_get(x_230, 0);
lean_inc(x_363);
lean_dec(x_230);
x_364 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_364, 0, x_363);
return x_364;
}
}
block_131:
{
lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; 
lean_inc_ref(x_20);
x_43 = l_Array_append___redArg(x_20, x_42);
lean_dec_ref(x_42);
lean_inc(x_26);
lean_inc(x_13);
x_44 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_44, 0, x_13);
lean_ctor_set(x_44, 1, x_26);
lean_ctor_set(x_44, 2, x_43);
lean_inc_n(x_16, 6);
lean_inc(x_18);
lean_inc(x_13);
x_45 = l_Lean_Syntax_node7(x_13, x_18, x_44, x_16, x_16, x_16, x_16, x_16, x_16);
x_46 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__9;
lean_inc_ref(x_14);
lean_inc_ref(x_22);
lean_inc_ref(x_21);
x_47 = l_Lean_Name_mkStr4(x_21, x_22, x_14, x_46);
lean_inc(x_13);
x_48 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_48, 0, x_13);
lean_ctor_set(x_48, 1, x_46);
x_49 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__10;
lean_inc_ref(x_14);
lean_inc_ref(x_22);
lean_inc_ref(x_21);
x_50 = l_Lean_Name_mkStr4(x_21, x_22, x_14, x_49);
x_51 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__11;
x_52 = lean_box(2);
lean_inc(x_26);
x_53 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_53, 0, x_52);
lean_ctor_set(x_53, 1, x_26);
lean_ctor_set(x_53, 2, x_51);
x_54 = lean_mk_empty_array_with_capacity(x_37);
lean_inc(x_17);
x_55 = lean_array_push(x_54, x_17);
x_56 = lean_array_push(x_55, x_53);
lean_inc(x_50);
x_57 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_57, 0, x_52);
lean_ctor_set(x_57, 1, x_50);
lean_ctor_set(x_57, 2, x_56);
x_58 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__13;
lean_inc_ref(x_14);
lean_inc_ref(x_22);
lean_inc_ref(x_21);
x_59 = l_Lean_Name_mkStr4(x_21, x_22, x_14, x_58);
x_60 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__57;
lean_inc_ref(x_25);
lean_inc_ref(x_22);
lean_inc_ref(x_21);
x_61 = l_Lean_Name_mkStr4(x_21, x_22, x_25, x_60);
lean_inc(x_27);
lean_inc(x_61);
lean_inc(x_13);
x_62 = l_Lean_Syntax_node2(x_13, x_61, x_27, x_24);
lean_inc(x_26);
lean_inc(x_13);
x_63 = l_Lean_Syntax_node1(x_13, x_26, x_62);
lean_inc(x_16);
lean_inc(x_59);
lean_inc(x_13);
x_64 = l_Lean_Syntax_node2(x_13, x_59, x_16, x_63);
x_65 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__60;
lean_inc_ref(x_14);
lean_inc_ref(x_22);
lean_inc_ref(x_21);
x_66 = l_Lean_Name_mkStr4(x_21, x_22, x_14, x_65);
x_67 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__1;
x_68 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__2;
lean_inc_ref(x_31);
x_69 = l_Lean_Name_mkStr3(x_31, x_33, x_68);
lean_inc(x_36);
lean_inc(x_69);
lean_inc(x_32);
x_70 = l_Lean_addMacroScope(x_32, x_69, x_36);
lean_inc(x_29);
x_71 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_71, 0, x_69);
lean_ctor_set(x_71, 1, x_29);
lean_inc(x_34);
x_72 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_72, 0, x_71);
lean_ctor_set(x_72, 1, x_34);
lean_inc(x_13);
x_73 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_73, 0, x_13);
lean_ctor_set(x_73, 1, x_67);
lean_ctor_set(x_73, 2, x_70);
lean_ctor_set(x_73, 3, x_72);
lean_inc(x_26);
lean_inc(x_13);
x_74 = l_Lean_Syntax_node4(x_13, x_26, x_30, x_40, x_38, x_35);
lean_inc(x_13);
x_75 = l_Lean_Syntax_node2(x_13, x_28, x_73, x_74);
x_76 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__62;
x_77 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__63;
lean_inc_ref(x_22);
lean_inc_ref(x_21);
x_78 = l_Lean_Name_mkStr4(x_21, x_22, x_76, x_77);
lean_inc_n(x_16, 2);
lean_inc(x_13);
x_79 = l_Lean_Syntax_node2(x_13, x_78, x_16, x_16);
lean_inc(x_16);
lean_inc(x_79);
lean_inc(x_19);
lean_inc(x_66);
lean_inc(x_13);
x_80 = l_Lean_Syntax_node4(x_13, x_66, x_19, x_75, x_79, x_16);
lean_inc(x_13);
x_81 = l_Lean_Syntax_node4(x_13, x_47, x_48, x_57, x_64, x_80);
lean_inc(x_12);
lean_inc(x_13);
x_82 = l_Lean_Syntax_node2(x_13, x_12, x_45, x_81);
x_83 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__5;
lean_inc_ref(x_25);
lean_inc_ref(x_22);
lean_inc_ref(x_21);
x_84 = l_Lean_Name_mkStr4(x_21, x_22, x_25, x_83);
x_85 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__6;
lean_inc(x_13);
x_86 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_86, 0, x_13);
lean_ctor_set(x_86, 1, x_85);
x_87 = l_Lean_Syntax_SepArray_ofElems(x_41, x_15);
lean_dec_ref(x_15);
x_88 = l_Array_append___redArg(x_20, x_87);
lean_dec_ref(x_87);
lean_inc(x_26);
lean_inc(x_13);
x_89 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_89, 0, x_13);
lean_ctor_set(x_89, 1, x_26);
lean_ctor_set(x_89, 2, x_88);
x_90 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__8;
lean_inc(x_13);
x_91 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_91, 0, x_13);
lean_ctor_set(x_91, 1, x_90);
lean_inc(x_13);
x_92 = l_Lean_Syntax_node3(x_13, x_84, x_86, x_89, x_91);
lean_inc(x_26);
lean_inc(x_13);
x_93 = l_Lean_Syntax_node1(x_13, x_26, x_92);
lean_inc_n(x_16, 6);
lean_inc(x_13);
x_94 = l_Lean_Syntax_node7(x_13, x_18, x_16, x_93, x_16, x_16, x_16, x_16, x_16);
x_95 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__0;
lean_inc_ref(x_22);
lean_inc_ref(x_21);
x_96 = l_Lean_Name_mkStr4(x_21, x_22, x_14, x_95);
x_97 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__1;
lean_inc(x_13);
x_98 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_98, 0, x_13);
lean_ctor_set(x_98, 1, x_97);
x_99 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__3;
x_100 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__4;
lean_inc(x_36);
lean_inc(x_32);
x_101 = l_Lean_addMacroScope(x_32, x_100, x_36);
lean_inc(x_34);
lean_inc(x_13);
x_102 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_102, 0, x_13);
lean_ctor_set(x_102, 1, x_99);
lean_ctor_set(x_102, 2, x_101);
lean_ctor_set(x_102, 3, x_34);
lean_inc(x_16);
lean_inc(x_13);
x_103 = l_Lean_Syntax_node2(x_13, x_50, x_102, x_16);
x_104 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__5;
x_105 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__6;
x_106 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__7;
lean_inc(x_36);
lean_inc(x_32);
x_107 = l_Lean_addMacroScope(x_32, x_106, x_36);
x_108 = l_Lean_Name_mkStr2(x_31, x_104);
lean_inc(x_108);
x_109 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_109, 0, x_108);
lean_ctor_set(x_109, 1, x_29);
x_110 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_110, 0, x_108);
lean_inc(x_34);
x_111 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_111, 0, x_110);
lean_ctor_set(x_111, 1, x_34);
x_112 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_112, 0, x_109);
lean_ctor_set(x_112, 1, x_111);
lean_inc(x_13);
x_113 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_113, 0, x_13);
lean_ctor_set(x_113, 1, x_105);
lean_ctor_set(x_113, 2, x_107);
lean_ctor_set(x_113, 3, x_112);
lean_inc(x_13);
x_114 = l_Lean_Syntax_node2(x_13, x_61, x_27, x_113);
lean_inc(x_26);
lean_inc(x_13);
x_115 = l_Lean_Syntax_node1(x_13, x_26, x_114);
lean_inc(x_16);
lean_inc(x_13);
x_116 = l_Lean_Syntax_node2(x_13, x_59, x_16, x_115);
x_117 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__10;
x_118 = l_Lean_Name_mkStr4(x_21, x_22, x_25, x_117);
x_119 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__11;
lean_inc(x_13);
x_120 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_120, 0, x_13);
lean_ctor_set(x_120, 1, x_119);
x_121 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__13;
x_122 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__14;
x_123 = l_Lean_addMacroScope(x_32, x_122, x_36);
lean_inc(x_13);
x_124 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_124, 0, x_13);
lean_ctor_set(x_124, 1, x_121);
lean_ctor_set(x_124, 2, x_123);
lean_ctor_set(x_124, 3, x_34);
lean_inc(x_13);
x_125 = l_Lean_Syntax_node3(x_13, x_118, x_17, x_120, x_124);
lean_inc(x_16);
lean_inc(x_13);
x_126 = l_Lean_Syntax_node4(x_13, x_66, x_19, x_125, x_79, x_16);
lean_inc(x_13);
x_127 = l_Lean_Syntax_node5(x_13, x_96, x_98, x_103, x_116, x_126, x_16);
lean_inc(x_13);
x_128 = l_Lean_Syntax_node2(x_13, x_12, x_94, x_127);
x_129 = l_Lean_Syntax_node3(x_13, x_26, x_23, x_82, x_128);
x_130 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_130, 0, x_129);
return x_130;
}
block_229:
{
lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; 
x_149 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_150 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__27;
lean_inc_ref(x_138);
lean_inc(x_133);
lean_inc(x_132);
x_151 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_151, 0, x_132);
lean_ctor_set(x_151, 1, x_133);
lean_ctor_set(x_151, 2, x_138);
x_152 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__28;
lean_inc(x_132);
x_153 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_153, 0, x_132);
lean_ctor_set(x_153, 1, x_152);
x_154 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__39;
lean_inc(x_132);
x_155 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_155, 0, x_132);
lean_ctor_set(x_155, 1, x_154);
x_156 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__30;
x_157 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__31;
lean_inc(x_139);
lean_inc(x_147);
x_158 = l_Lean_addMacroScope(x_147, x_157, x_139);
x_159 = lean_box(0);
x_160 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__3;
lean_inc(x_135);
x_161 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_161, 0, x_160);
lean_ctor_set(x_161, 1, x_135);
lean_inc(x_132);
x_162 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_162, 0, x_132);
lean_ctor_set(x_162, 1, x_156);
lean_ctor_set(x_162, 2, x_158);
lean_ctor_set(x_162, 3, x_161);
x_163 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__35;
lean_inc_ref(x_145);
lean_inc_ref(x_144);
lean_inc_ref(x_141);
x_164 = l_Lean_Name_mkStr4(x_141, x_144, x_145, x_163);
x_165 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__22;
lean_inc_ref(x_145);
lean_inc_ref(x_144);
lean_inc_ref(x_141);
x_166 = l_Lean_Name_mkStr4(x_141, x_144, x_145, x_165);
x_167 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__23;
lean_inc(x_132);
x_168 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_168, 0, x_132);
lean_ctor_set(x_168, 1, x_167);
x_169 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__25;
x_170 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__27;
x_171 = lean_box(0);
lean_inc(x_139);
lean_inc(x_147);
x_172 = l_Lean_addMacroScope(x_147, x_171, x_139);
x_173 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_174 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__29;
x_175 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__59;
lean_inc_ref(x_144);
lean_inc_ref(x_141);
x_176 = l_Lean_Name_mkStr3(x_141, x_144, x_175);
x_177 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_177, 0, x_176);
x_178 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__30;
lean_inc_ref(x_141);
x_179 = l_Lean_Name_mkStr3(x_141, x_178, x_175);
x_180 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_180, 0, x_179);
lean_inc_ref(x_141);
x_181 = l_Lean_Name_mkStr2(x_141, x_178);
x_182 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_182, 0, x_181);
lean_inc_ref(x_144);
lean_inc_ref(x_141);
x_183 = l_Lean_Name_mkStr2(x_141, x_144);
x_184 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_184, 0, x_183);
lean_inc_ref(x_141);
x_185 = l_Lean_Name_mkStr1(x_141);
x_186 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_186, 0, x_185);
lean_inc(x_135);
x_187 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_187, 0, x_186);
lean_ctor_set(x_187, 1, x_135);
x_188 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_188, 0, x_184);
lean_ctor_set(x_188, 1, x_187);
x_189 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_189, 0, x_182);
lean_ctor_set(x_189, 1, x_188);
x_190 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_190, 0, x_180);
lean_ctor_set(x_190, 1, x_189);
x_191 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_191, 0, x_177);
lean_ctor_set(x_191, 1, x_190);
x_192 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_192, 0, x_174);
lean_ctor_set(x_192, 1, x_191);
lean_inc(x_132);
x_193 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_193, 0, x_132);
lean_ctor_set(x_193, 1, x_170);
lean_ctor_set(x_193, 2, x_172);
lean_ctor_set(x_193, 3, x_192);
lean_inc(x_132);
x_194 = l_Lean_Syntax_node1(x_132, x_169, x_193);
lean_inc(x_132);
x_195 = l_Lean_Syntax_node2(x_132, x_166, x_168, x_194);
x_196 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__37;
x_197 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__38;
lean_inc(x_132);
x_198 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_198, 0, x_132);
lean_ctor_set(x_198, 1, x_197);
lean_inc(x_132);
x_199 = l_Lean_Syntax_node1(x_132, x_196, x_198);
x_200 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__7;
lean_inc(x_132);
x_201 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_201, 0, x_132);
lean_ctor_set(x_201, 1, x_200);
lean_inc(x_143);
lean_inc(x_133);
lean_inc(x_132);
x_202 = l_Lean_Syntax_node1(x_132, x_133, x_143);
lean_inc(x_199);
lean_inc(x_133);
lean_inc(x_132);
x_203 = l_Lean_Syntax_node3(x_132, x_133, x_199, x_201, x_202);
x_204 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__34;
lean_inc(x_132);
x_205 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_205, 0, x_132);
lean_ctor_set(x_205, 1, x_204);
lean_inc(x_132);
x_206 = l_Lean_Syntax_node3(x_132, x_164, x_195, x_203, x_205);
x_207 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__14;
lean_inc(x_132);
x_208 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_208, 0, x_132);
lean_ctor_set(x_208, 1, x_207);
x_209 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__15;
lean_inc_ref(x_145);
lean_inc_ref(x_144);
lean_inc_ref(x_141);
x_210 = l_Lean_Name_mkStr4(x_141, x_144, x_145, x_209);
x_211 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__5;
x_212 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__6;
lean_inc(x_139);
lean_inc(x_147);
x_213 = l_Lean_addMacroScope(x_147, x_212, x_139);
x_214 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__8;
x_215 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__9;
lean_inc(x_135);
x_216 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_216, 0, x_215);
lean_ctor_set(x_216, 1, x_135);
x_217 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_217, 0, x_214);
lean_ctor_set(x_217, 1, x_216);
lean_inc(x_132);
x_218 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_218, 0, x_132);
lean_ctor_set(x_218, 1, x_211);
lean_ctor_set(x_218, 2, x_213);
lean_ctor_set(x_218, 3, x_217);
lean_inc(x_142);
lean_inc(x_133);
lean_inc(x_132);
x_219 = l_Lean_Syntax_node1(x_132, x_133, x_142);
lean_inc(x_210);
lean_inc(x_132);
x_220 = l_Lean_Syntax_node2(x_132, x_210, x_218, x_219);
lean_inc_ref(x_208);
lean_inc_ref(x_155);
lean_inc(x_136);
lean_inc_ref(x_151);
lean_inc(x_132);
x_221 = l_Lean_Syntax_node8(x_132, x_150, x_151, x_153, x_136, x_155, x_162, x_206, x_208, x_220);
x_222 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__40;
lean_inc_ref(x_144);
lean_inc_ref(x_141);
x_223 = l_Lean_Name_mkStr4(x_141, x_144, x_175, x_222);
x_224 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__41;
lean_inc_ref(x_144);
lean_inc_ref(x_141);
x_225 = l_Lean_Name_mkStr4(x_141, x_144, x_175, x_224);
if (lean_obj_tag(x_5) == 1)
{
lean_object* x_226; lean_object* x_227; 
x_226 = lean_ctor_get(x_5, 0);
lean_inc(x_226);
lean_dec_ref(x_5);
x_227 = l_Array_mkArray1___redArg(x_226);
x_12 = x_223;
x_13 = x_132;
x_14 = x_175;
x_15 = x_134;
x_16 = x_151;
x_17 = x_136;
x_18 = x_225;
x_19 = x_208;
x_20 = x_138;
x_21 = x_141;
x_22 = x_144;
x_23 = x_221;
x_24 = x_146;
x_25 = x_145;
x_26 = x_133;
x_27 = x_155;
x_28 = x_210;
x_29 = x_159;
x_30 = x_199;
x_31 = x_149;
x_32 = x_147;
x_33 = x_173;
x_34 = x_135;
x_35 = x_137;
x_36 = x_139;
x_37 = x_140;
x_38 = x_142;
x_39 = lean_box(0);
x_40 = x_143;
x_41 = x_200;
x_42 = x_227;
goto block_131;
}
else
{
lean_object* x_228; 
lean_dec(x_5);
x_228 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__35;
x_12 = x_223;
x_13 = x_132;
x_14 = x_175;
x_15 = x_134;
x_16 = x_151;
x_17 = x_136;
x_18 = x_225;
x_19 = x_208;
x_20 = x_138;
x_21 = x_141;
x_22 = x_144;
x_23 = x_221;
x_24 = x_146;
x_25 = x_145;
x_26 = x_133;
x_27 = x_155;
x_28 = x_210;
x_29 = x_159;
x_30 = x_199;
x_31 = x_149;
x_32 = x_147;
x_33 = x_173;
x_34 = x_135;
x_35 = x_137;
x_36 = x_139;
x_37 = x_140;
x_38 = x_142;
x_39 = lean_box(0);
x_40 = x_143;
x_41 = x_200;
x_42 = x_228;
goto block_131;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; uint8_t x_6; 
x_5 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__1;
lean_inc(x_1);
x_6 = l_Lean_Syntax_isOfKind(x_1, x_5);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; 
x_7 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__3;
x_8 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_1, x_7, x_2, x_3);
lean_dec(x_3);
lean_dec(x_1);
return x_8;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_65; lean_object* x_66; lean_object* x_73; lean_object* x_80; 
x_9 = lean_unsigned_to_nat(0u);
x_10 = l_Lean_Syntax_getArg(x_1, x_9);
x_11 = lean_unsigned_to_nat(1u);
x_12 = l_Lean_Syntax_getArg(x_1, x_11);
x_13 = lean_unsigned_to_nat(2u);
x_14 = l_Lean_Syntax_getArg(x_1, x_13);
x_15 = lean_unsigned_to_nat(3u);
x_16 = l_Lean_Syntax_getArg(x_1, x_15);
x_17 = lean_unsigned_to_nat(4u);
x_18 = l_Lean_Syntax_getArg(x_1, x_17);
x_80 = l_Lean_Syntax_getOptional_x3f(x_16);
lean_dec(x_16);
if (lean_obj_tag(x_80) == 0)
{
lean_object* x_81; 
x_81 = lean_box(0);
x_73 = x_81;
goto block_79;
}
else
{
uint8_t x_82; 
x_82 = !lean_is_exclusive(x_80);
if (x_82 == 0)
{
x_73 = x_80;
goto block_79;
}
else
{
lean_object* x_83; lean_object* x_84; 
x_83 = lean_ctor_get(x_80, 0);
lean_inc(x_83);
lean_dec(x_80);
x_84 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_84, 0, x_83);
x_73 = x_84;
goto block_79;
}
}
block_64:
{
lean_object* x_22; 
x_22 = l_Lean_Elab_Command_getRef___redArg(x_2);
if (lean_obj_tag(x_22) == 0)
{
lean_object* x_23; uint8_t x_24; 
x_23 = lean_ctor_get(x_22, 0);
lean_inc(x_23);
lean_dec_ref(x_22);
x_24 = !lean_is_exclusive(x_2);
if (x_24 == 0)
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_25 = lean_ctor_get(x_2, 7);
lean_dec(x_25);
x_26 = l_Lake_instTypeNameLeanLibDecl_unsafe__1;
x_27 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__5;
x_28 = l_Lake_LeanLib_keyword;
x_29 = l_Lake_DSL_mkLibraryFacetDecl___lam__0___closed__1;
x_30 = l_Lean_replaceRef(x_14, x_23);
lean_dec(x_23);
lean_dec(x_14);
lean_ctor_set(x_2, 7, x_30);
lean_inc(x_3);
lean_inc_ref(x_2);
x_31 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6(x_27, x_28, x_29, x_26, x_21, x_20, x_19, x_18, x_2, x_3);
if (lean_obj_tag(x_31) == 0)
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_32 = lean_ctor_get(x_31, 0);
lean_inc(x_32);
lean_dec_ref(x_31);
lean_inc(x_32);
x_33 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCommand___boxed), 4, 1);
lean_closure_set(x_33, 0, x_32);
x_34 = l_Lean_Elab_Command_withMacroExpansion___redArg(x_1, x_32, x_33, x_2, x_3);
return x_34;
}
else
{
uint8_t x_35; 
lean_dec_ref(x_2);
lean_dec(x_3);
lean_dec(x_1);
x_35 = !lean_is_exclusive(x_31);
if (x_35 == 0)
{
return x_31;
}
else
{
lean_object* x_36; lean_object* x_37; 
x_36 = lean_ctor_get(x_31, 0);
lean_inc(x_36);
lean_dec(x_31);
x_37 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_37, 0, x_36);
return x_37;
}
}
}
else
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; 
x_38 = lean_ctor_get(x_2, 0);
x_39 = lean_ctor_get(x_2, 1);
x_40 = lean_ctor_get(x_2, 2);
x_41 = lean_ctor_get(x_2, 3);
x_42 = lean_ctor_get(x_2, 4);
x_43 = lean_ctor_get(x_2, 5);
x_44 = lean_ctor_get(x_2, 6);
x_45 = lean_ctor_get(x_2, 8);
x_46 = lean_ctor_get(x_2, 9);
x_47 = lean_ctor_get_uint8(x_2, sizeof(void*)*10);
lean_inc(x_46);
lean_inc(x_45);
lean_inc(x_44);
lean_inc(x_43);
lean_inc(x_42);
lean_inc(x_41);
lean_inc(x_40);
lean_inc(x_39);
lean_inc(x_38);
lean_dec(x_2);
x_48 = l_Lake_instTypeNameLeanLibDecl_unsafe__1;
x_49 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__5;
x_50 = l_Lake_LeanLib_keyword;
x_51 = l_Lake_DSL_mkLibraryFacetDecl___lam__0___closed__1;
x_52 = l_Lean_replaceRef(x_14, x_23);
lean_dec(x_23);
lean_dec(x_14);
x_53 = lean_alloc_ctor(0, 10, 1);
lean_ctor_set(x_53, 0, x_38);
lean_ctor_set(x_53, 1, x_39);
lean_ctor_set(x_53, 2, x_40);
lean_ctor_set(x_53, 3, x_41);
lean_ctor_set(x_53, 4, x_42);
lean_ctor_set(x_53, 5, x_43);
lean_ctor_set(x_53, 6, x_44);
lean_ctor_set(x_53, 7, x_52);
lean_ctor_set(x_53, 8, x_45);
lean_ctor_set(x_53, 9, x_46);
lean_ctor_set_uint8(x_53, sizeof(void*)*10, x_47);
lean_inc(x_3);
lean_inc_ref(x_53);
x_54 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6(x_49, x_50, x_51, x_48, x_21, x_20, x_19, x_18, x_53, x_3);
if (lean_obj_tag(x_54) == 0)
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; 
x_55 = lean_ctor_get(x_54, 0);
lean_inc(x_55);
lean_dec_ref(x_54);
lean_inc(x_55);
x_56 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCommand___boxed), 4, 1);
lean_closure_set(x_56, 0, x_55);
x_57 = l_Lean_Elab_Command_withMacroExpansion___redArg(x_1, x_55, x_56, x_53, x_3);
return x_57;
}
else
{
lean_object* x_58; lean_object* x_59; lean_object* x_60; 
lean_dec_ref(x_53);
lean_dec(x_3);
lean_dec(x_1);
x_58 = lean_ctor_get(x_54, 0);
lean_inc(x_58);
if (lean_is_exclusive(x_54)) {
 lean_ctor_release(x_54, 0);
 x_59 = x_54;
} else {
 lean_dec_ref(x_54);
 x_59 = lean_box(0);
}
if (lean_is_scalar(x_59)) {
 x_60 = lean_alloc_ctor(1, 1, 0);
} else {
 x_60 = x_59;
}
lean_ctor_set(x_60, 0, x_58);
return x_60;
}
}
}
else
{
uint8_t x_61; 
lean_dec(x_21);
lean_dec(x_20);
lean_dec(x_19);
lean_dec(x_18);
lean_dec(x_14);
lean_dec(x_3);
lean_dec_ref(x_2);
lean_dec(x_1);
x_61 = !lean_is_exclusive(x_22);
if (x_61 == 0)
{
return x_22;
}
else
{
lean_object* x_62; lean_object* x_63; 
x_62 = lean_ctor_get(x_22, 0);
lean_inc(x_62);
lean_dec(x_22);
x_63 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_63, 0, x_62);
return x_63;
}
}
}
block_72:
{
lean_object* x_67; 
x_67 = l_Lean_Syntax_getOptional_x3f(x_10);
lean_dec(x_10);
if (lean_obj_tag(x_67) == 0)
{
lean_object* x_68; 
x_68 = lean_box(0);
x_19 = x_65;
x_20 = x_66;
x_21 = x_68;
goto block_64;
}
else
{
uint8_t x_69; 
x_69 = !lean_is_exclusive(x_67);
if (x_69 == 0)
{
x_19 = x_65;
x_20 = x_66;
x_21 = x_67;
goto block_64;
}
else
{
lean_object* x_70; lean_object* x_71; 
x_70 = lean_ctor_get(x_67, 0);
lean_inc(x_70);
lean_dec(x_67);
x_71 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_71, 0, x_70);
x_19 = x_65;
x_20 = x_66;
x_21 = x_71;
goto block_64;
}
}
}
block_79:
{
lean_object* x_74; 
x_74 = l_Lean_Syntax_getOptional_x3f(x_12);
lean_dec(x_12);
if (lean_obj_tag(x_74) == 0)
{
lean_object* x_75; 
x_75 = lean_box(0);
x_65 = x_73;
x_66 = x_75;
goto block_72;
}
else
{
uint8_t x_76; 
x_76 = !lean_is_exclusive(x_74);
if (x_76 == 0)
{
x_65 = x_73;
x_66 = x_74;
goto block_72;
}
else
{
lean_object* x_77; lean_object* x_78; 
x_77 = lean_ctor_get(x_74, 0);
lean_inc(x_77);
lean_dec(x_74);
x_78 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_78, 0, x_77);
x_65 = x_73;
x_66 = x_78;
goto block_72;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1(x_1, x_2, x_3, x_4);
lean_dec(x_4);
lean_dec_ref(x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec_ref(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6(x_1, x_2);
lean_dec(x_2);
lean_dec_ref(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_mkIdentFromRef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; lean_object* x_7; 
x_6 = lean_unbox(x_2);
x_7 = l_Lean_mkIdentFromRef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__8(x_1, x_6, x_3, x_4);
lean_dec(x_4);
lean_dec_ref(x_3);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0(x_1, x_2, x_3, x_4);
lean_dec(x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
lean_dec(x_2);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_mkIdentFromRef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__8___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = lean_unbox(x_2);
x_6 = l_Lean_mkIdentFromRef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__8___redArg(x_1, x_5, x_3);
lean_dec_ref(x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_get___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__1___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lean_Option_get___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__1(x_1, x_2);
lean_dec_ref(x_2);
lean_dec(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___redArg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___redArg(x_1);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_1, x_2, x_3, x_4);
lean_dec(x_4);
lean_dec(x_1);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0___redArg(x_1, x_2, x_3);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg(x_1, x_2, x_3);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg(x_1, x_2);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand(x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6(x_1, x_2, x_3, x_4, x_5, x_6);
return x_8;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; 
x_12 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
return x_12;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_Command_commandElabAttribute;
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabLeanLibCommand", 18, 18);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1___closed__1;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__9;
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1() {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1___closed__0;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__1;
x_4 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1___closed__2;
x_5 = lean_alloc_closure((void*)(l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___boxed), 4, 0);
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___redArg(x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1();
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("leanExeCommand", 14, 14);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__0;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ill-formed lean_exe declaration", 31, 31);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__2;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("LeanExeConfig", 13, 13);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__4;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_107; uint8_t x_108; 
x_83 = l_Lake_LeanExeConfig_instConfigInfo;
x_107 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__5;
lean_inc(x_4);
x_108 = l_Lean_Syntax_isOfKind(x_4, x_107);
if (x_108 == 0)
{
lean_object* x_109; lean_object* x_110; 
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_109 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_110 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_109, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_110;
}
else
{
lean_object* x_111; lean_object* x_112; uint8_t x_113; 
x_111 = lean_unsigned_to_nat(0u);
x_112 = l_Lean_Syntax_getArg(x_4, x_111);
lean_inc(x_112);
x_113 = l_Lean_Syntax_matchesNull(x_112, x_111);
if (x_113 == 0)
{
lean_object* x_114; uint8_t x_115; 
x_114 = lean_unsigned_to_nat(1u);
lean_inc(x_112);
x_115 = l_Lean_Syntax_matchesNull(x_112, x_114);
if (x_115 == 0)
{
lean_object* x_116; lean_object* x_117; 
lean_dec(x_112);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_116 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_117 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_116, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_117;
}
else
{
lean_object* x_118; lean_object* x_119; uint8_t x_120; 
x_118 = l_Lean_Syntax_getArg(x_112, x_111);
lean_dec(x_112);
x_119 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__9;
lean_inc(x_118);
x_120 = l_Lean_Syntax_isOfKind(x_118, x_119);
if (x_120 == 0)
{
lean_object* x_121; uint8_t x_122; 
x_121 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__11;
lean_inc(x_118);
x_122 = l_Lean_Syntax_isOfKind(x_118, x_121);
if (x_122 == 0)
{
lean_object* x_123; lean_object* x_124; 
lean_dec(x_118);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_123 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_124 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_123, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_124;
}
else
{
lean_object* x_125; lean_object* x_126; uint8_t x_127; 
x_125 = l_Lean_Syntax_getArg(x_118, x_111);
x_126 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__13;
lean_inc(x_125);
x_127 = l_Lean_Syntax_isOfKind(x_125, x_126);
if (x_127 == 0)
{
lean_object* x_128; lean_object* x_129; 
lean_dec(x_125);
lean_dec(x_118);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_128 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_129 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_128, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_129;
}
else
{
lean_object* x_130; lean_object* x_131; uint8_t x_132; 
x_130 = l_Lean_Syntax_getArg(x_125, x_114);
x_131 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__15;
lean_inc(x_130);
x_132 = l_Lean_Syntax_isOfKind(x_130, x_131);
if (x_132 == 0)
{
lean_object* x_133; lean_object* x_134; 
lean_dec(x_130);
lean_dec(x_125);
lean_dec(x_118);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_133 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_134 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_133, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_134;
}
else
{
lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_145; uint8_t x_146; 
x_135 = l_Lean_Syntax_getArg(x_125, x_111);
lean_dec(x_125);
x_136 = l_Lean_Syntax_getArg(x_130, x_111);
lean_dec(x_130);
x_145 = l_Lean_Syntax_getArg(x_118, x_114);
lean_dec(x_118);
x_146 = l_Lean_Syntax_isNone(x_145);
if (x_146 == 0)
{
uint8_t x_147; 
lean_inc(x_145);
x_147 = l_Lean_Syntax_matchesNull(x_145, x_114);
if (x_147 == 0)
{
lean_object* x_148; lean_object* x_149; 
lean_dec(x_145);
lean_dec(x_136);
lean_dec(x_135);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_148 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_149 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_148, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_149;
}
else
{
lean_object* x_150; lean_object* x_151; uint8_t x_152; 
x_150 = l_Lean_Syntax_getArg(x_145, x_111);
lean_dec(x_145);
x_151 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__66;
lean_inc(x_150);
x_152 = l_Lean_Syntax_isOfKind(x_150, x_151);
if (x_152 == 0)
{
lean_object* x_153; lean_object* x_154; 
lean_dec(x_150);
lean_dec(x_136);
lean_dec(x_135);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_153 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_154 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_153, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_154;
}
else
{
lean_object* x_155; 
x_155 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_155, 0, x_150);
x_137 = x_155;
x_138 = x_5;
x_139 = x_6;
x_140 = lean_box(0);
goto block_144;
}
}
}
else
{
lean_object* x_156; 
lean_dec(x_145);
x_156 = lean_box(0);
x_137 = x_156;
x_138 = x_5;
x_139 = x_6;
x_140 = lean_box(0);
goto block_144;
}
block_144:
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; 
x_141 = l_Lean_Syntax_getArgs(x_136);
lean_dec(x_136);
x_142 = l_Lean_Syntax_getHeadInfo(x_135);
lean_dec(x_135);
x_143 = l_Lean_Syntax_TSepArray_getElems___redArg(x_141);
lean_dec_ref(x_141);
x_84 = x_142;
x_85 = x_143;
x_86 = x_137;
x_87 = x_138;
x_88 = x_139;
x_89 = lean_box(0);
goto block_106;
}
}
}
}
}
else
{
lean_object* x_157; lean_object* x_158; uint8_t x_159; 
x_157 = l_Lean_Syntax_getArg(x_118, x_114);
x_158 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__15;
lean_inc(x_157);
x_159 = l_Lean_Syntax_isOfKind(x_157, x_158);
if (x_159 == 0)
{
lean_object* x_160; lean_object* x_161; 
lean_dec(x_157);
lean_dec(x_118);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_160 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_161 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_160, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_161;
}
else
{
lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_172; lean_object* x_173; uint8_t x_174; 
x_162 = l_Lean_Syntax_getArg(x_118, x_111);
x_163 = l_Lean_Syntax_getArg(x_157, x_111);
lean_dec(x_157);
x_172 = lean_unsigned_to_nat(2u);
x_173 = l_Lean_Syntax_getArg(x_118, x_172);
lean_dec(x_118);
x_174 = l_Lean_Syntax_isNone(x_173);
if (x_174 == 0)
{
uint8_t x_175; 
lean_inc(x_173);
x_175 = l_Lean_Syntax_matchesNull(x_173, x_114);
if (x_175 == 0)
{
lean_object* x_176; lean_object* x_177; 
lean_dec(x_173);
lean_dec(x_163);
lean_dec(x_162);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_176 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_177 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_176, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_177;
}
else
{
lean_object* x_178; lean_object* x_179; uint8_t x_180; 
x_178 = l_Lean_Syntax_getArg(x_173, x_111);
lean_dec(x_173);
x_179 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__66;
lean_inc(x_178);
x_180 = l_Lean_Syntax_isOfKind(x_178, x_179);
if (x_180 == 0)
{
lean_object* x_181; lean_object* x_182; 
lean_dec(x_178);
lean_dec(x_163);
lean_dec(x_162);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_181 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_182 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_181, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_182;
}
else
{
lean_object* x_183; 
x_183 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_183, 0, x_178);
x_164 = x_183;
x_165 = x_5;
x_166 = x_6;
x_167 = lean_box(0);
goto block_171;
}
}
}
else
{
lean_object* x_184; 
lean_dec(x_173);
x_184 = lean_box(0);
x_164 = x_184;
x_165 = x_5;
x_166 = x_6;
x_167 = lean_box(0);
goto block_171;
}
block_171:
{
lean_object* x_168; lean_object* x_169; lean_object* x_170; 
x_168 = l_Lean_Syntax_getArgs(x_163);
lean_dec(x_163);
x_169 = l_Lean_Syntax_getHeadInfo(x_162);
lean_dec(x_162);
x_170 = l_Lean_Syntax_TSepArray_getElems___redArg(x_168);
lean_dec_ref(x_168);
x_84 = x_169;
x_85 = x_170;
x_86 = x_164;
x_87 = x_165;
x_88 = x_166;
x_89 = lean_box(0);
goto block_106;
}
}
}
}
}
else
{
lean_object* x_185; lean_object* x_186; lean_object* x_187; 
lean_dec(x_112);
x_185 = lean_box(2);
x_186 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__11;
x_187 = lean_box(0);
x_84 = x_185;
x_85 = x_186;
x_86 = x_187;
x_87 = x_5;
x_88 = x_6;
x_89 = lean_box(0);
goto block_106;
}
}
block_51:
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; 
x_17 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__40;
lean_inc_ref(x_14);
lean_inc_ref(x_12);
lean_inc_ref(x_10);
x_18 = l_Lean_Name_mkStr4(x_10, x_12, x_14, x_17);
x_19 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__41;
lean_inc_ref(x_14);
lean_inc_ref(x_12);
lean_inc_ref(x_10);
x_20 = l_Lean_Name_mkStr4(x_10, x_12, x_14, x_19);
x_21 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__45;
x_22 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__46;
lean_inc(x_13);
x_23 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_23, 0, x_13);
lean_ctor_set(x_23, 1, x_21);
lean_ctor_set(x_23, 2, x_22);
lean_inc_ref_n(x_23, 7);
lean_inc(x_13);
x_24 = l_Lean_Syntax_node7(x_13, x_20, x_23, x_23, x_23, x_23, x_23, x_23, x_23);
x_25 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__0;
lean_inc_ref(x_14);
lean_inc_ref(x_12);
lean_inc_ref(x_10);
x_26 = l_Lean_Name_mkStr4(x_10, x_12, x_14, x_25);
x_27 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__1;
lean_inc(x_13);
x_28 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_28, 0, x_13);
lean_ctor_set(x_28, 1, x_27);
x_29 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__10;
lean_inc_ref(x_14);
lean_inc_ref(x_12);
lean_inc_ref(x_10);
x_30 = l_Lean_Name_mkStr4(x_10, x_12, x_14, x_29);
x_31 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__11;
lean_inc(x_9);
x_32 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_32, 0, x_9);
lean_ctor_set(x_32, 1, x_21);
lean_ctor_set(x_32, 2, x_31);
x_33 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__12;
x_34 = lean_array_push(x_33, x_2);
x_35 = lean_array_push(x_34, x_32);
x_36 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_36, 0, x_9);
lean_ctor_set(x_36, 1, x_30);
lean_ctor_set(x_36, 2, x_35);
x_37 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__13;
lean_inc_ref(x_12);
lean_inc_ref(x_10);
x_38 = l_Lean_Name_mkStr4(x_10, x_12, x_14, x_37);
x_39 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56;
x_40 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__57;
x_41 = l_Lean_Name_mkStr4(x_10, x_12, x_39, x_40);
x_42 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__39;
lean_inc(x_13);
x_43 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_43, 0, x_13);
lean_ctor_set(x_43, 1, x_42);
lean_inc(x_13);
x_44 = l_Lean_Syntax_node2(x_13, x_41, x_43, x_3);
lean_inc(x_13);
x_45 = l_Lean_Syntax_node1(x_13, x_21, x_44);
lean_inc_ref(x_23);
lean_inc(x_13);
x_46 = l_Lean_Syntax_node2(x_13, x_38, x_23, x_45);
lean_inc(x_13);
x_47 = l_Lean_Syntax_node5(x_13, x_26, x_28, x_36, x_46, x_11, x_23);
x_48 = l_Lean_Syntax_node2(x_13, x_18, x_24, x_47);
lean_inc(x_48);
x_49 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCommand___boxed), 4, 1);
lean_closure_set(x_49, 0, x_48);
x_50 = l_Lean_Elab_Command_withMacroExpansion___redArg(x_4, x_48, x_49, x_15, x_8);
return x_50;
}
block_82:
{
lean_object* x_62; 
x_62 = l_Lean_Elab_Command_getRef___redArg(x_59);
if (lean_obj_tag(x_62) == 0)
{
lean_object* x_63; lean_object* x_64; 
x_63 = lean_ctor_get(x_62, 0);
lean_inc(x_63);
lean_dec_ref(x_62);
x_64 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_59);
if (lean_obj_tag(x_64) == 0)
{
lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; lean_object* x_74; 
lean_dec_ref(x_64);
x_65 = lean_ctor_get(x_59, 5);
x_66 = l_Lean_mkOptionalNode(x_61);
x_67 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__0;
x_68 = lean_array_push(x_67, x_57);
x_69 = lean_array_push(x_68, x_54);
x_70 = lean_array_push(x_69, x_66);
x_71 = lean_box(2);
x_72 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_72, 0, x_71);
lean_ctor_set(x_72, 1, x_60);
lean_ctor_set(x_72, 2, x_70);
x_73 = 0;
x_74 = l_Lean_SourceInfo_fromRef(x_63, x_73);
lean_dec(x_63);
if (lean_obj_tag(x_65) == 0)
{
lean_object* x_75; 
x_75 = l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___redArg(x_52);
lean_dec_ref(x_75);
x_8 = x_52;
x_9 = x_71;
x_10 = x_53;
x_11 = x_72;
x_12 = x_55;
x_13 = x_74;
x_14 = x_56;
x_15 = x_59;
x_16 = lean_box(0);
goto block_51;
}
else
{
x_8 = x_52;
x_9 = x_71;
x_10 = x_53;
x_11 = x_72;
x_12 = x_55;
x_13 = x_74;
x_14 = x_56;
x_15 = x_59;
x_16 = lean_box(0);
goto block_51;
}
}
else
{
uint8_t x_76; 
lean_dec(x_63);
lean_dec(x_61);
lean_dec(x_60);
lean_dec_ref(x_59);
lean_dec(x_57);
lean_dec_ref(x_56);
lean_dec_ref(x_55);
lean_dec(x_54);
lean_dec_ref(x_53);
lean_dec(x_52);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_76 = !lean_is_exclusive(x_64);
if (x_76 == 0)
{
return x_64;
}
else
{
lean_object* x_77; lean_object* x_78; 
x_77 = lean_ctor_get(x_64, 0);
lean_inc(x_77);
lean_dec(x_64);
x_78 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_78, 0, x_77);
return x_78;
}
}
}
else
{
uint8_t x_79; 
lean_dec(x_61);
lean_dec(x_60);
lean_dec_ref(x_59);
lean_dec(x_57);
lean_dec_ref(x_56);
lean_dec_ref(x_55);
lean_dec(x_54);
lean_dec_ref(x_53);
lean_dec(x_52);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_79 = !lean_is_exclusive(x_62);
if (x_79 == 0)
{
return x_62;
}
else
{
lean_object* x_80; lean_object* x_81; 
x_80 = lean_ctor_get(x_62, 0);
lean_inc(x_80);
lean_dec(x_62);
x_81 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_81, 0, x_80);
return x_81;
}
}
}
block_106:
{
lean_object* x_90; lean_object* x_91; 
x_90 = lean_ctor_get(x_83, 1);
lean_inc(x_90);
lean_inc_ref(x_87);
x_91 = l___private_Lake_DSL_DeclUtil_0__Lake_DSL_mkConfigFields(x_1, x_90, x_85, x_87, x_88);
lean_dec_ref(x_85);
lean_dec(x_90);
if (lean_obj_tag(x_91) == 0)
{
lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; 
x_92 = lean_ctor_get(x_91, 0);
lean_inc(x_92);
lean_dec_ref(x_91);
x_93 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__1;
x_94 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_94, 0, x_84);
lean_ctor_set(x_94, 1, x_93);
x_95 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54;
x_96 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55;
x_97 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__59;
x_98 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__3;
if (lean_obj_tag(x_86) == 0)
{
lean_object* x_99; 
x_99 = lean_box(0);
x_52 = x_88;
x_53 = x_95;
x_54 = x_92;
x_55 = x_96;
x_56 = x_97;
x_57 = x_94;
x_58 = lean_box(0);
x_59 = x_87;
x_60 = x_98;
x_61 = x_99;
goto block_82;
}
else
{
uint8_t x_100; 
x_100 = !lean_is_exclusive(x_86);
if (x_100 == 0)
{
x_52 = x_88;
x_53 = x_95;
x_54 = x_92;
x_55 = x_96;
x_56 = x_97;
x_57 = x_94;
x_58 = lean_box(0);
x_59 = x_87;
x_60 = x_98;
x_61 = x_86;
goto block_82;
}
else
{
lean_object* x_101; lean_object* x_102; 
x_101 = lean_ctor_get(x_86, 0);
lean_inc(x_101);
lean_dec(x_86);
x_102 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_102, 0, x_101);
x_52 = x_88;
x_53 = x_95;
x_54 = x_92;
x_55 = x_96;
x_56 = x_97;
x_57 = x_94;
x_58 = lean_box(0);
x_59 = x_87;
x_60 = x_98;
x_61 = x_102;
goto block_82;
}
}
}
else
{
uint8_t x_103; 
lean_dec(x_88);
lean_dec_ref(x_87);
lean_dec(x_86);
lean_dec(x_84);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_103 = !lean_is_exclusive(x_91);
if (x_103 == 0)
{
return x_91;
}
else
{
lean_object* x_104; lean_object* x_105; 
x_104 = lean_ctor_get(x_91, 0);
lean_inc(x_104);
lean_dec(x_91);
x_105 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_105, 0, x_104);
return x_105;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_230; 
x_230 = l_Lean_Elab_Command_getRef___redArg(x_9);
if (lean_obj_tag(x_230) == 0)
{
lean_object* x_231; lean_object* x_232; 
x_231 = lean_ctor_get(x_230, 0);
lean_inc(x_231);
lean_dec_ref(x_230);
x_232 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_9);
if (lean_obj_tag(x_232) == 0)
{
lean_object* x_233; lean_object* x_234; uint8_t x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_320; lean_object* x_321; lean_object* x_322; 
x_233 = lean_ctor_get(x_232, 0);
lean_inc(x_233);
lean_dec_ref(x_232);
x_234 = lean_ctor_get(x_9, 5);
lean_inc(x_234);
x_235 = 0;
x_320 = l_Lean_SourceInfo_fromRef(x_231, x_235);
lean_dec(x_231);
if (lean_obj_tag(x_234) == 0)
{
lean_object* x_356; lean_object* x_357; 
x_356 = l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___redArg(x_10);
x_357 = lean_ctor_get(x_356, 0);
lean_inc(x_357);
lean_dec_ref(x_356);
x_321 = x_357;
x_322 = lean_box(0);
goto block_355;
}
else
{
lean_object* x_358; 
x_358 = lean_ctor_get(x_234, 0);
lean_inc(x_358);
x_321 = x_358;
x_322 = lean_box(0);
goto block_355;
}
block_283:
{
lean_object* x_252; 
x_252 = l_Lean_mkIdentFromRef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__8___redArg(x_4, x_235, x_9);
if (lean_obj_tag(x_252) == 0)
{
lean_object* x_253; lean_object* x_254; 
x_253 = lean_ctor_get(x_252, 0);
lean_inc(x_253);
lean_dec_ref(x_252);
x_254 = l_Lean_Elab_Command_getRef___redArg(x_9);
if (lean_obj_tag(x_254) == 0)
{
lean_object* x_255; lean_object* x_256; 
x_255 = lean_ctor_get(x_254, 0);
lean_inc(x_255);
lean_dec_ref(x_254);
x_256 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___lam__0(x_9, x_10);
if (lean_obj_tag(x_256) == 0)
{
lean_object* x_257; lean_object* x_258; 
x_257 = lean_ctor_get(x_256, 0);
lean_inc(x_257);
lean_dec_ref(x_256);
x_258 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_9);
lean_dec_ref(x_9);
if (lean_obj_tag(x_258) == 0)
{
lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; 
x_259 = lean_ctor_get(x_258, 0);
lean_inc(x_259);
lean_dec_ref(x_258);
lean_inc_ref(x_247);
lean_inc(x_237);
lean_inc(x_243);
x_260 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_260, 0, x_243);
lean_ctor_set(x_260, 1, x_237);
lean_ctor_set(x_260, 2, x_247);
lean_inc_ref(x_260);
lean_inc(x_243);
x_261 = l_Lean_Syntax_node1(x_243, x_240, x_260);
lean_inc(x_243);
x_262 = l_Lean_Syntax_node2(x_243, x_246, x_241, x_260);
x_263 = l_Lean_Syntax_node2(x_243, x_236, x_261, x_262);
x_264 = lean_unsigned_to_nat(2u);
x_265 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__12;
x_266 = lean_array_push(x_265, x_238);
x_267 = lean_array_push(x_266, x_263);
x_268 = l_Lake_DSL_expandAttrs(x_6);
x_269 = l_Array_append___redArg(x_267, x_268);
lean_dec_ref(x_268);
x_270 = l_Lake_Name_quoteFrom(x_255, x_3, x_235);
if (lean_obj_tag(x_234) == 0)
{
lean_object* x_271; lean_object* x_272; 
x_271 = l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___redArg(x_10);
lean_dec(x_10);
x_272 = lean_ctor_get(x_271, 0);
lean_inc(x_272);
lean_dec_ref(x_271);
x_132 = x_259;
x_133 = x_257;
x_134 = x_237;
x_135 = x_239;
x_136 = x_269;
x_137 = x_253;
x_138 = x_270;
x_139 = x_242;
x_140 = x_244;
x_141 = x_264;
x_142 = x_245;
x_143 = x_247;
x_144 = x_248;
x_145 = x_249;
x_146 = x_250;
x_147 = x_272;
x_148 = lean_box(0);
goto block_229;
}
else
{
lean_object* x_273; 
lean_dec(x_10);
x_273 = lean_ctor_get(x_234, 0);
lean_inc(x_273);
lean_dec_ref(x_234);
x_132 = x_259;
x_133 = x_257;
x_134 = x_237;
x_135 = x_239;
x_136 = x_269;
x_137 = x_253;
x_138 = x_270;
x_139 = x_242;
x_140 = x_244;
x_141 = x_264;
x_142 = x_245;
x_143 = x_247;
x_144 = x_248;
x_145 = x_249;
x_146 = x_250;
x_147 = x_273;
x_148 = lean_box(0);
goto block_229;
}
}
else
{
uint8_t x_274; 
lean_dec(x_257);
lean_dec(x_255);
lean_dec(x_253);
lean_dec_ref(x_250);
lean_dec_ref(x_249);
lean_dec_ref(x_248);
lean_dec_ref(x_247);
lean_dec(x_246);
lean_dec(x_245);
lean_dec(x_244);
lean_dec(x_243);
lean_dec(x_242);
lean_dec(x_241);
lean_dec(x_240);
lean_dec(x_239);
lean_dec(x_238);
lean_dec(x_237);
lean_dec(x_236);
lean_dec(x_234);
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_274 = !lean_is_exclusive(x_258);
if (x_274 == 0)
{
return x_258;
}
else
{
lean_object* x_275; lean_object* x_276; 
x_275 = lean_ctor_get(x_258, 0);
lean_inc(x_275);
lean_dec(x_258);
x_276 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_276, 0, x_275);
return x_276;
}
}
}
else
{
uint8_t x_277; 
lean_dec(x_255);
lean_dec(x_253);
lean_dec_ref(x_250);
lean_dec_ref(x_249);
lean_dec_ref(x_248);
lean_dec_ref(x_247);
lean_dec(x_246);
lean_dec(x_245);
lean_dec(x_244);
lean_dec(x_243);
lean_dec(x_242);
lean_dec(x_241);
lean_dec(x_240);
lean_dec(x_239);
lean_dec(x_238);
lean_dec(x_237);
lean_dec(x_236);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_277 = !lean_is_exclusive(x_256);
if (x_277 == 0)
{
return x_256;
}
else
{
lean_object* x_278; lean_object* x_279; 
x_278 = lean_ctor_get(x_256, 0);
lean_inc(x_278);
lean_dec(x_256);
x_279 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_279, 0, x_278);
return x_279;
}
}
}
else
{
uint8_t x_280; 
lean_dec(x_253);
lean_dec_ref(x_250);
lean_dec_ref(x_249);
lean_dec_ref(x_248);
lean_dec_ref(x_247);
lean_dec(x_246);
lean_dec(x_245);
lean_dec(x_244);
lean_dec(x_243);
lean_dec(x_242);
lean_dec(x_241);
lean_dec(x_240);
lean_dec(x_239);
lean_dec(x_238);
lean_dec(x_237);
lean_dec(x_236);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_280 = !lean_is_exclusive(x_254);
if (x_280 == 0)
{
return x_254;
}
else
{
lean_object* x_281; lean_object* x_282; 
x_281 = lean_ctor_get(x_254, 0);
lean_inc(x_281);
lean_dec(x_254);
x_282 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_282, 0, x_281);
return x_282;
}
}
}
else
{
lean_dec_ref(x_250);
lean_dec_ref(x_249);
lean_dec_ref(x_248);
lean_dec_ref(x_247);
lean_dec(x_246);
lean_dec(x_245);
lean_dec(x_244);
lean_dec(x_243);
lean_dec(x_242);
lean_dec(x_241);
lean_dec(x_240);
lean_dec(x_239);
lean_dec(x_238);
lean_dec(x_237);
lean_dec(x_236);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
return x_252;
}
}
block_319:
{
lean_object* x_293; 
x_293 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___lam__0(x_9, x_10);
if (lean_obj_tag(x_293) == 0)
{
lean_object* x_294; lean_object* x_295; 
x_294 = lean_ctor_get(x_293, 0);
lean_inc(x_294);
lean_dec_ref(x_293);
x_295 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_9);
if (lean_obj_tag(x_295) == 0)
{
lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; 
lean_dec_ref(x_295);
x_296 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54;
x_297 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55;
x_298 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56;
x_299 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__14;
x_300 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__15;
x_301 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__45;
x_302 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__46;
lean_inc(x_287);
x_303 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_303, 0, x_287);
lean_ctor_set(x_303, 1, x_301);
lean_ctor_set(x_303, 2, x_302);
lean_inc_ref(x_303);
lean_inc(x_287);
x_304 = l_Lean_Syntax_node1(x_287, x_300, x_303);
x_305 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__16;
x_306 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__23;
x_307 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__25;
x_308 = l_Lean_addMacroScope(x_291, x_307, x_288);
lean_inc(x_285);
lean_inc(x_287);
x_309 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_309, 0, x_287);
lean_ctor_set(x_309, 1, x_306);
lean_ctor_set(x_309, 2, x_308);
lean_ctor_set(x_309, 3, x_285);
lean_inc(x_287);
x_310 = l_Lean_Syntax_node2(x_287, x_305, x_309, x_303);
x_311 = l_Lean_Syntax_node2(x_287, x_299, x_304, x_310);
if (lean_obj_tag(x_234) == 0)
{
lean_object* x_312; 
x_312 = l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___redArg(x_10);
lean_dec_ref(x_312);
x_236 = x_299;
x_237 = x_301;
x_238 = x_311;
x_239 = x_284;
x_240 = x_300;
x_241 = x_286;
x_242 = x_289;
x_243 = x_294;
x_244 = x_290;
x_245 = x_285;
x_246 = x_305;
x_247 = x_302;
x_248 = x_297;
x_249 = x_298;
x_250 = x_296;
x_251 = lean_box(0);
goto block_283;
}
else
{
x_236 = x_299;
x_237 = x_301;
x_238 = x_311;
x_239 = x_284;
x_240 = x_300;
x_241 = x_286;
x_242 = x_289;
x_243 = x_294;
x_244 = x_290;
x_245 = x_285;
x_246 = x_305;
x_247 = x_302;
x_248 = x_297;
x_249 = x_298;
x_250 = x_296;
x_251 = lean_box(0);
goto block_283;
}
}
else
{
uint8_t x_313; 
lean_dec(x_294);
lean_dec(x_291);
lean_dec(x_290);
lean_dec(x_289);
lean_dec(x_288);
lean_dec(x_287);
lean_dec(x_286);
lean_dec(x_285);
lean_dec(x_284);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_313 = !lean_is_exclusive(x_295);
if (x_313 == 0)
{
return x_295;
}
else
{
lean_object* x_314; lean_object* x_315; 
x_314 = lean_ctor_get(x_295, 0);
lean_inc(x_314);
lean_dec(x_295);
x_315 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_315, 0, x_314);
return x_315;
}
}
}
else
{
uint8_t x_316; 
lean_dec(x_291);
lean_dec(x_290);
lean_dec(x_289);
lean_dec(x_288);
lean_dec(x_287);
lean_dec(x_286);
lean_dec(x_285);
lean_dec(x_284);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_316 = !lean_is_exclusive(x_293);
if (x_316 == 0)
{
return x_293;
}
else
{
lean_object* x_317; lean_object* x_318; 
x_317 = lean_ctor_get(x_293, 0);
lean_inc(x_317);
lean_dec(x_293);
x_318 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_318, 0, x_317);
return x_318;
}
}
}
block_355:
{
lean_object* x_323; 
lean_inc(x_10);
lean_inc_ref(x_9);
x_323 = l_Lake_DSL_mkConfigDeclIdent(x_7, x_9, x_10);
if (lean_obj_tag(x_323) == 0)
{
lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; 
x_324 = lean_ctor_get(x_323, 0);
lean_inc(x_324);
lean_dec_ref(x_323);
x_325 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__18;
x_326 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__19;
x_327 = l_Lean_addMacroScope(x_321, x_326, x_233);
x_328 = lean_box(0);
x_329 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_329, 0, x_320);
lean_ctor_set(x_329, 1, x_325);
lean_ctor_set(x_329, 2, x_327);
lean_ctor_set(x_329, 3, x_328);
x_330 = l_Lean_TSyntax_getId(x_324);
lean_inc(x_324);
x_331 = l_Lake_Name_quoteFrom(x_324, x_330, x_235);
x_332 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__53;
lean_inc(x_331);
x_333 = lean_array_push(x_332, x_331);
lean_inc(x_1);
x_334 = l_Lean_Syntax_mkCApp(x_1, x_333);
lean_inc(x_10);
lean_inc_ref(x_9);
lean_inc_ref(x_329);
x_335 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand_spec__0_spec__0(x_1, x_329, x_334, x_8, x_9, x_10);
if (lean_obj_tag(x_335) == 0)
{
lean_object* x_336; 
lean_dec_ref(x_335);
x_336 = l_Lean_mkIdentFromRef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__8___redArg(x_2, x_235, x_9);
if (lean_obj_tag(x_336) == 0)
{
lean_object* x_337; lean_object* x_338; 
x_337 = lean_ctor_get(x_336, 0);
lean_inc(x_337);
lean_dec_ref(x_336);
x_338 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___lam__0(x_9, x_10);
if (lean_obj_tag(x_338) == 0)
{
lean_object* x_339; lean_object* x_340; 
x_339 = lean_ctor_get(x_338, 0);
lean_inc(x_339);
lean_dec_ref(x_338);
x_340 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_9);
if (lean_obj_tag(x_340) == 0)
{
if (lean_obj_tag(x_234) == 0)
{
lean_object* x_341; lean_object* x_342; lean_object* x_343; 
x_341 = lean_ctor_get(x_340, 0);
lean_inc(x_341);
lean_dec_ref(x_340);
x_342 = l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___redArg(x_10);
x_343 = lean_ctor_get(x_342, 0);
lean_inc(x_343);
lean_dec_ref(x_342);
x_284 = x_329;
x_285 = x_328;
x_286 = x_337;
x_287 = x_339;
x_288 = x_341;
x_289 = x_324;
x_290 = x_331;
x_291 = x_343;
x_292 = lean_box(0);
goto block_319;
}
else
{
lean_object* x_344; lean_object* x_345; 
x_344 = lean_ctor_get(x_340, 0);
lean_inc(x_344);
lean_dec_ref(x_340);
x_345 = lean_ctor_get(x_234, 0);
lean_inc(x_345);
x_284 = x_329;
x_285 = x_328;
x_286 = x_337;
x_287 = x_339;
x_288 = x_344;
x_289 = x_324;
x_290 = x_331;
x_291 = x_345;
x_292 = lean_box(0);
goto block_319;
}
}
else
{
uint8_t x_346; 
lean_dec(x_339);
lean_dec(x_337);
lean_dec(x_331);
lean_dec_ref(x_329);
lean_dec(x_324);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_346 = !lean_is_exclusive(x_340);
if (x_346 == 0)
{
return x_340;
}
else
{
lean_object* x_347; lean_object* x_348; 
x_347 = lean_ctor_get(x_340, 0);
lean_inc(x_347);
lean_dec(x_340);
x_348 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_348, 0, x_347);
return x_348;
}
}
}
else
{
uint8_t x_349; 
lean_dec(x_337);
lean_dec(x_331);
lean_dec_ref(x_329);
lean_dec(x_324);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_349 = !lean_is_exclusive(x_338);
if (x_349 == 0)
{
return x_338;
}
else
{
lean_object* x_350; lean_object* x_351; 
x_350 = lean_ctor_get(x_338, 0);
lean_inc(x_350);
lean_dec(x_338);
x_351 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_351, 0, x_350);
return x_351;
}
}
}
else
{
lean_dec(x_331);
lean_dec_ref(x_329);
lean_dec(x_324);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
return x_336;
}
}
else
{
uint8_t x_352; 
lean_dec(x_331);
lean_dec_ref(x_329);
lean_dec(x_324);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_352 = !lean_is_exclusive(x_335);
if (x_352 == 0)
{
return x_335;
}
else
{
lean_object* x_353; lean_object* x_354; 
x_353 = lean_ctor_get(x_335, 0);
lean_inc(x_353);
lean_dec(x_335);
x_354 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_354, 0, x_353);
return x_354;
}
}
}
else
{
lean_dec(x_321);
lean_dec(x_320);
lean_dec(x_234);
lean_dec(x_233);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_8);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_323;
}
}
}
else
{
uint8_t x_359; 
lean_dec(x_231);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_359 = !lean_is_exclusive(x_232);
if (x_359 == 0)
{
return x_232;
}
else
{
lean_object* x_360; lean_object* x_361; 
x_360 = lean_ctor_get(x_232, 0);
lean_inc(x_360);
lean_dec(x_232);
x_361 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_361, 0, x_360);
return x_361;
}
}
}
else
{
uint8_t x_362; 
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_362 = !lean_is_exclusive(x_230);
if (x_362 == 0)
{
return x_230;
}
else
{
lean_object* x_363; lean_object* x_364; 
x_363 = lean_ctor_get(x_230, 0);
lean_inc(x_363);
lean_dec(x_230);
x_364 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_364, 0, x_363);
return x_364;
}
}
block_131:
{
lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; 
lean_inc_ref(x_20);
x_43 = l_Array_append___redArg(x_20, x_42);
lean_dec_ref(x_42);
lean_inc(x_25);
lean_inc(x_26);
x_44 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_44, 0, x_26);
lean_ctor_set(x_44, 1, x_25);
lean_ctor_set(x_44, 2, x_43);
lean_inc_n(x_30, 6);
lean_inc(x_18);
lean_inc(x_26);
x_45 = l_Lean_Syntax_node7(x_26, x_18, x_44, x_30, x_30, x_30, x_30, x_30, x_30);
x_46 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__9;
lean_inc_ref(x_39);
lean_inc_ref(x_21);
lean_inc_ref(x_22);
x_47 = l_Lean_Name_mkStr4(x_22, x_21, x_39, x_46);
lean_inc(x_26);
x_48 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_48, 0, x_26);
lean_ctor_set(x_48, 1, x_46);
x_49 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__10;
lean_inc_ref(x_39);
lean_inc_ref(x_21);
lean_inc_ref(x_22);
x_50 = l_Lean_Name_mkStr4(x_22, x_21, x_39, x_49);
x_51 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__11;
x_52 = lean_box(2);
lean_inc(x_25);
x_53 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_53, 0, x_52);
lean_ctor_set(x_53, 1, x_25);
lean_ctor_set(x_53, 2, x_51);
x_54 = lean_mk_empty_array_with_capacity(x_36);
lean_inc(x_33);
x_55 = lean_array_push(x_54, x_33);
x_56 = lean_array_push(x_55, x_53);
lean_inc(x_50);
x_57 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_57, 0, x_52);
lean_ctor_set(x_57, 1, x_50);
lean_ctor_set(x_57, 2, x_56);
x_58 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__13;
lean_inc_ref(x_39);
lean_inc_ref(x_21);
lean_inc_ref(x_22);
x_59 = l_Lean_Name_mkStr4(x_22, x_21, x_39, x_58);
x_60 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__57;
lean_inc_ref(x_38);
lean_inc_ref(x_21);
lean_inc_ref(x_22);
x_61 = l_Lean_Name_mkStr4(x_22, x_21, x_38, x_60);
lean_inc(x_29);
lean_inc(x_61);
lean_inc(x_26);
x_62 = l_Lean_Syntax_node2(x_26, x_61, x_29, x_16);
lean_inc(x_25);
lean_inc(x_26);
x_63 = l_Lean_Syntax_node1(x_26, x_25, x_62);
lean_inc(x_30);
lean_inc(x_59);
lean_inc(x_26);
x_64 = l_Lean_Syntax_node2(x_26, x_59, x_30, x_63);
x_65 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__60;
lean_inc_ref(x_39);
lean_inc_ref(x_21);
lean_inc_ref(x_22);
x_66 = l_Lean_Name_mkStr4(x_22, x_21, x_39, x_65);
x_67 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__1;
x_68 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__2;
lean_inc_ref(x_34);
x_69 = l_Lean_Name_mkStr3(x_34, x_28, x_68);
lean_inc(x_24);
lean_inc(x_69);
lean_inc(x_15);
x_70 = l_Lean_addMacroScope(x_15, x_69, x_24);
lean_inc(x_12);
x_71 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_71, 0, x_69);
lean_ctor_set(x_71, 1, x_12);
lean_inc(x_19);
x_72 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_72, 0, x_71);
lean_ctor_set(x_72, 1, x_19);
lean_inc(x_26);
x_73 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_73, 0, x_26);
lean_ctor_set(x_73, 1, x_67);
lean_ctor_set(x_73, 2, x_70);
lean_ctor_set(x_73, 3, x_72);
lean_inc(x_25);
lean_inc(x_26);
x_74 = l_Lean_Syntax_node4(x_26, x_25, x_37, x_35, x_32, x_14);
lean_inc(x_26);
x_75 = l_Lean_Syntax_node2(x_26, x_40, x_73, x_74);
x_76 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__62;
x_77 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__63;
lean_inc_ref(x_21);
lean_inc_ref(x_22);
x_78 = l_Lean_Name_mkStr4(x_22, x_21, x_76, x_77);
lean_inc_n(x_30, 2);
lean_inc(x_26);
x_79 = l_Lean_Syntax_node2(x_26, x_78, x_30, x_30);
lean_inc(x_30);
lean_inc(x_79);
lean_inc(x_41);
lean_inc(x_66);
lean_inc(x_26);
x_80 = l_Lean_Syntax_node4(x_26, x_66, x_41, x_75, x_79, x_30);
lean_inc(x_26);
x_81 = l_Lean_Syntax_node4(x_26, x_47, x_48, x_57, x_64, x_80);
lean_inc(x_23);
lean_inc(x_26);
x_82 = l_Lean_Syntax_node2(x_26, x_23, x_45, x_81);
x_83 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__5;
lean_inc_ref(x_38);
lean_inc_ref(x_21);
lean_inc_ref(x_22);
x_84 = l_Lean_Name_mkStr4(x_22, x_21, x_38, x_83);
x_85 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__6;
lean_inc(x_26);
x_86 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_86, 0, x_26);
lean_ctor_set(x_86, 1, x_85);
x_87 = l_Lean_Syntax_SepArray_ofElems(x_17, x_27);
lean_dec_ref(x_27);
x_88 = l_Array_append___redArg(x_20, x_87);
lean_dec_ref(x_87);
lean_inc(x_25);
lean_inc(x_26);
x_89 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_89, 0, x_26);
lean_ctor_set(x_89, 1, x_25);
lean_ctor_set(x_89, 2, x_88);
x_90 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__8;
lean_inc(x_26);
x_91 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_91, 0, x_26);
lean_ctor_set(x_91, 1, x_90);
lean_inc(x_26);
x_92 = l_Lean_Syntax_node3(x_26, x_84, x_86, x_89, x_91);
lean_inc(x_25);
lean_inc(x_26);
x_93 = l_Lean_Syntax_node1(x_26, x_25, x_92);
lean_inc_n(x_30, 6);
lean_inc(x_26);
x_94 = l_Lean_Syntax_node7(x_26, x_18, x_30, x_93, x_30, x_30, x_30, x_30, x_30);
x_95 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__0;
lean_inc_ref(x_21);
lean_inc_ref(x_22);
x_96 = l_Lean_Name_mkStr4(x_22, x_21, x_39, x_95);
x_97 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__1;
lean_inc(x_26);
x_98 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_98, 0, x_26);
lean_ctor_set(x_98, 1, x_97);
x_99 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__3;
x_100 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__4;
lean_inc(x_24);
lean_inc(x_15);
x_101 = l_Lean_addMacroScope(x_15, x_100, x_24);
lean_inc(x_19);
lean_inc(x_26);
x_102 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_102, 0, x_26);
lean_ctor_set(x_102, 1, x_99);
lean_ctor_set(x_102, 2, x_101);
lean_ctor_set(x_102, 3, x_19);
lean_inc(x_30);
lean_inc(x_26);
x_103 = l_Lean_Syntax_node2(x_26, x_50, x_102, x_30);
x_104 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__5;
x_105 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__6;
x_106 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__7;
lean_inc(x_24);
lean_inc(x_15);
x_107 = l_Lean_addMacroScope(x_15, x_106, x_24);
x_108 = l_Lean_Name_mkStr2(x_34, x_104);
lean_inc(x_108);
x_109 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_109, 0, x_108);
lean_ctor_set(x_109, 1, x_12);
x_110 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_110, 0, x_108);
lean_inc(x_19);
x_111 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_111, 0, x_110);
lean_ctor_set(x_111, 1, x_19);
x_112 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_112, 0, x_109);
lean_ctor_set(x_112, 1, x_111);
lean_inc(x_26);
x_113 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_113, 0, x_26);
lean_ctor_set(x_113, 1, x_105);
lean_ctor_set(x_113, 2, x_107);
lean_ctor_set(x_113, 3, x_112);
lean_inc(x_26);
x_114 = l_Lean_Syntax_node2(x_26, x_61, x_29, x_113);
lean_inc(x_25);
lean_inc(x_26);
x_115 = l_Lean_Syntax_node1(x_26, x_25, x_114);
lean_inc(x_30);
lean_inc(x_26);
x_116 = l_Lean_Syntax_node2(x_26, x_59, x_30, x_115);
x_117 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__10;
x_118 = l_Lean_Name_mkStr4(x_22, x_21, x_38, x_117);
x_119 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__11;
lean_inc(x_26);
x_120 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_120, 0, x_26);
lean_ctor_set(x_120, 1, x_119);
x_121 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__13;
x_122 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__14;
x_123 = l_Lean_addMacroScope(x_15, x_122, x_24);
lean_inc(x_26);
x_124 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_124, 0, x_26);
lean_ctor_set(x_124, 1, x_121);
lean_ctor_set(x_124, 2, x_123);
lean_ctor_set(x_124, 3, x_19);
lean_inc(x_26);
x_125 = l_Lean_Syntax_node3(x_26, x_118, x_33, x_120, x_124);
lean_inc(x_30);
lean_inc(x_26);
x_126 = l_Lean_Syntax_node4(x_26, x_66, x_41, x_125, x_79, x_30);
lean_inc(x_26);
x_127 = l_Lean_Syntax_node5(x_26, x_96, x_98, x_103, x_116, x_126, x_30);
lean_inc(x_26);
x_128 = l_Lean_Syntax_node2(x_26, x_23, x_94, x_127);
x_129 = l_Lean_Syntax_node3(x_26, x_25, x_13, x_82, x_128);
x_130 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_130, 0, x_129);
return x_130;
}
block_229:
{
lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; 
x_149 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_150 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__27;
lean_inc_ref(x_143);
lean_inc(x_134);
lean_inc(x_133);
x_151 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_151, 0, x_133);
lean_ctor_set(x_151, 1, x_134);
lean_ctor_set(x_151, 2, x_143);
x_152 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__28;
lean_inc(x_133);
x_153 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_153, 0, x_133);
lean_ctor_set(x_153, 1, x_152);
x_154 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__39;
lean_inc(x_133);
x_155 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_155, 0, x_133);
lean_ctor_set(x_155, 1, x_154);
x_156 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__30;
x_157 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__31;
lean_inc(x_132);
lean_inc(x_147);
x_158 = l_Lean_addMacroScope(x_147, x_157, x_132);
x_159 = lean_box(0);
x_160 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__3;
lean_inc(x_142);
x_161 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_161, 0, x_160);
lean_ctor_set(x_161, 1, x_142);
lean_inc(x_133);
x_162 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_162, 0, x_133);
lean_ctor_set(x_162, 1, x_156);
lean_ctor_set(x_162, 2, x_158);
lean_ctor_set(x_162, 3, x_161);
x_163 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__35;
lean_inc_ref(x_145);
lean_inc_ref(x_144);
lean_inc_ref(x_146);
x_164 = l_Lean_Name_mkStr4(x_146, x_144, x_145, x_163);
x_165 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__22;
lean_inc_ref(x_145);
lean_inc_ref(x_144);
lean_inc_ref(x_146);
x_166 = l_Lean_Name_mkStr4(x_146, x_144, x_145, x_165);
x_167 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__23;
lean_inc(x_133);
x_168 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_168, 0, x_133);
lean_ctor_set(x_168, 1, x_167);
x_169 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__25;
x_170 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__27;
x_171 = lean_box(0);
lean_inc(x_132);
lean_inc(x_147);
x_172 = l_Lean_addMacroScope(x_147, x_171, x_132);
x_173 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_174 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__29;
x_175 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__59;
lean_inc_ref(x_144);
lean_inc_ref(x_146);
x_176 = l_Lean_Name_mkStr3(x_146, x_144, x_175);
x_177 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_177, 0, x_176);
x_178 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__30;
lean_inc_ref(x_146);
x_179 = l_Lean_Name_mkStr3(x_146, x_178, x_175);
x_180 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_180, 0, x_179);
lean_inc_ref(x_146);
x_181 = l_Lean_Name_mkStr2(x_146, x_178);
x_182 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_182, 0, x_181);
lean_inc_ref(x_144);
lean_inc_ref(x_146);
x_183 = l_Lean_Name_mkStr2(x_146, x_144);
x_184 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_184, 0, x_183);
lean_inc_ref(x_146);
x_185 = l_Lean_Name_mkStr1(x_146);
x_186 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_186, 0, x_185);
lean_inc(x_142);
x_187 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_187, 0, x_186);
lean_ctor_set(x_187, 1, x_142);
x_188 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_188, 0, x_184);
lean_ctor_set(x_188, 1, x_187);
x_189 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_189, 0, x_182);
lean_ctor_set(x_189, 1, x_188);
x_190 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_190, 0, x_180);
lean_ctor_set(x_190, 1, x_189);
x_191 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_191, 0, x_177);
lean_ctor_set(x_191, 1, x_190);
x_192 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_192, 0, x_174);
lean_ctor_set(x_192, 1, x_191);
lean_inc(x_133);
x_193 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_193, 0, x_133);
lean_ctor_set(x_193, 1, x_170);
lean_ctor_set(x_193, 2, x_172);
lean_ctor_set(x_193, 3, x_192);
lean_inc(x_133);
x_194 = l_Lean_Syntax_node1(x_133, x_169, x_193);
lean_inc(x_133);
x_195 = l_Lean_Syntax_node2(x_133, x_166, x_168, x_194);
x_196 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__37;
x_197 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__38;
lean_inc(x_133);
x_198 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_198, 0, x_133);
lean_ctor_set(x_198, 1, x_197);
lean_inc(x_133);
x_199 = l_Lean_Syntax_node1(x_133, x_196, x_198);
x_200 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__7;
lean_inc(x_133);
x_201 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_201, 0, x_133);
lean_ctor_set(x_201, 1, x_200);
lean_inc(x_140);
lean_inc(x_134);
lean_inc(x_133);
x_202 = l_Lean_Syntax_node1(x_133, x_134, x_140);
lean_inc(x_199);
lean_inc(x_134);
lean_inc(x_133);
x_203 = l_Lean_Syntax_node3(x_133, x_134, x_199, x_201, x_202);
x_204 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__34;
lean_inc(x_133);
x_205 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_205, 0, x_133);
lean_ctor_set(x_205, 1, x_204);
lean_inc(x_133);
x_206 = l_Lean_Syntax_node3(x_133, x_164, x_195, x_203, x_205);
x_207 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__14;
lean_inc(x_133);
x_208 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_208, 0, x_133);
lean_ctor_set(x_208, 1, x_207);
x_209 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__15;
lean_inc_ref(x_145);
lean_inc_ref(x_144);
lean_inc_ref(x_146);
x_210 = l_Lean_Name_mkStr4(x_146, x_144, x_145, x_209);
x_211 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__5;
x_212 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__6;
lean_inc(x_132);
lean_inc(x_147);
x_213 = l_Lean_addMacroScope(x_147, x_212, x_132);
x_214 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__8;
x_215 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__9;
lean_inc(x_142);
x_216 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_216, 0, x_215);
lean_ctor_set(x_216, 1, x_142);
x_217 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_217, 0, x_214);
lean_ctor_set(x_217, 1, x_216);
lean_inc(x_133);
x_218 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_218, 0, x_133);
lean_ctor_set(x_218, 1, x_211);
lean_ctor_set(x_218, 2, x_213);
lean_ctor_set(x_218, 3, x_217);
lean_inc(x_138);
lean_inc(x_134);
lean_inc(x_133);
x_219 = l_Lean_Syntax_node1(x_133, x_134, x_138);
lean_inc(x_210);
lean_inc(x_133);
x_220 = l_Lean_Syntax_node2(x_133, x_210, x_218, x_219);
lean_inc_ref(x_208);
lean_inc_ref(x_155);
lean_inc(x_139);
lean_inc_ref(x_151);
lean_inc(x_133);
x_221 = l_Lean_Syntax_node8(x_133, x_150, x_151, x_153, x_139, x_155, x_162, x_206, x_208, x_220);
x_222 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__40;
lean_inc_ref(x_144);
lean_inc_ref(x_146);
x_223 = l_Lean_Name_mkStr4(x_146, x_144, x_175, x_222);
x_224 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__41;
lean_inc_ref(x_144);
lean_inc_ref(x_146);
x_225 = l_Lean_Name_mkStr4(x_146, x_144, x_175, x_224);
if (lean_obj_tag(x_5) == 1)
{
lean_object* x_226; lean_object* x_227; 
x_226 = lean_ctor_get(x_5, 0);
lean_inc(x_226);
lean_dec_ref(x_5);
x_227 = l_Array_mkArray1___redArg(x_226);
x_12 = x_159;
x_13 = x_221;
x_14 = x_135;
x_15 = x_147;
x_16 = x_137;
x_17 = x_200;
x_18 = x_225;
x_19 = x_142;
x_20 = x_143;
x_21 = x_144;
x_22 = x_146;
x_23 = x_223;
x_24 = x_132;
x_25 = x_134;
x_26 = x_133;
x_27 = x_136;
x_28 = x_173;
x_29 = x_155;
x_30 = x_151;
x_31 = lean_box(0);
x_32 = x_138;
x_33 = x_139;
x_34 = x_149;
x_35 = x_140;
x_36 = x_141;
x_37 = x_199;
x_38 = x_145;
x_39 = x_175;
x_40 = x_210;
x_41 = x_208;
x_42 = x_227;
goto block_131;
}
else
{
lean_object* x_228; 
lean_dec(x_5);
x_228 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__35;
x_12 = x_159;
x_13 = x_221;
x_14 = x_135;
x_15 = x_147;
x_16 = x_137;
x_17 = x_200;
x_18 = x_225;
x_19 = x_142;
x_20 = x_143;
x_21 = x_144;
x_22 = x_146;
x_23 = x_223;
x_24 = x_132;
x_25 = x_134;
x_26 = x_133;
x_27 = x_136;
x_28 = x_173;
x_29 = x_155;
x_30 = x_151;
x_31 = lean_box(0);
x_32 = x_138;
x_33 = x_139;
x_34 = x_149;
x_35 = x_140;
x_36 = x_141;
x_37 = x_199;
x_38 = x_145;
x_39 = x_175;
x_40 = x_210;
x_41 = x_208;
x_42 = x_228;
goto block_131;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; uint8_t x_6; 
x_5 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__1;
lean_inc(x_1);
x_6 = l_Lean_Syntax_isOfKind(x_1, x_5);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; 
x_7 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__3;
x_8 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_1, x_7, x_2, x_3);
lean_dec(x_3);
lean_dec(x_1);
return x_8;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_63; lean_object* x_64; lean_object* x_71; lean_object* x_78; 
x_9 = lean_unsigned_to_nat(0u);
x_10 = l_Lean_Syntax_getArg(x_1, x_9);
x_11 = lean_unsigned_to_nat(1u);
x_12 = l_Lean_Syntax_getArg(x_1, x_11);
x_13 = lean_unsigned_to_nat(2u);
x_14 = l_Lean_Syntax_getArg(x_1, x_13);
x_15 = lean_unsigned_to_nat(3u);
x_16 = l_Lean_Syntax_getArg(x_1, x_15);
x_17 = lean_unsigned_to_nat(4u);
x_18 = l_Lean_Syntax_getArg(x_1, x_17);
x_78 = l_Lean_Syntax_getOptional_x3f(x_16);
lean_dec(x_16);
if (lean_obj_tag(x_78) == 0)
{
lean_object* x_79; 
x_79 = lean_box(0);
x_71 = x_79;
goto block_77;
}
else
{
uint8_t x_80; 
x_80 = !lean_is_exclusive(x_78);
if (x_80 == 0)
{
x_71 = x_78;
goto block_77;
}
else
{
lean_object* x_81; lean_object* x_82; 
x_81 = lean_ctor_get(x_78, 0);
lean_inc(x_81);
lean_dec(x_78);
x_82 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_82, 0, x_81);
x_71 = x_82;
goto block_77;
}
}
block_62:
{
lean_object* x_22; 
x_22 = l_Lean_Elab_Command_getRef___redArg(x_2);
if (lean_obj_tag(x_22) == 0)
{
lean_object* x_23; uint8_t x_24; 
x_23 = lean_ctor_get(x_22, 0);
lean_inc(x_23);
lean_dec_ref(x_22);
x_24 = !lean_is_exclusive(x_2);
if (x_24 == 0)
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
x_25 = lean_ctor_get(x_2, 7);
lean_dec(x_25);
x_26 = l_Lake_instTypeNameLeanExeDecl_unsafe__1;
x_27 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__5;
x_28 = l_Lake_LeanExe_keyword;
x_29 = l_Lean_replaceRef(x_14, x_23);
lean_dec(x_23);
lean_dec(x_14);
lean_ctor_set(x_2, 7, x_29);
lean_inc(x_3);
lean_inc_ref(x_2);
x_30 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand_spec__0(x_27, x_28, x_28, x_26, x_21, x_20, x_19, x_18, x_2, x_3);
if (lean_obj_tag(x_30) == 0)
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_31 = lean_ctor_get(x_30, 0);
lean_inc(x_31);
lean_dec_ref(x_30);
lean_inc(x_31);
x_32 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCommand___boxed), 4, 1);
lean_closure_set(x_32, 0, x_31);
x_33 = l_Lean_Elab_Command_withMacroExpansion___redArg(x_1, x_31, x_32, x_2, x_3);
return x_33;
}
else
{
uint8_t x_34; 
lean_dec_ref(x_2);
lean_dec(x_3);
lean_dec(x_1);
x_34 = !lean_is_exclusive(x_30);
if (x_34 == 0)
{
return x_30;
}
else
{
lean_object* x_35; lean_object* x_36; 
x_35 = lean_ctor_get(x_30, 0);
lean_inc(x_35);
lean_dec(x_30);
x_36 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_36, 0, x_35);
return x_36;
}
}
}
else
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; 
x_37 = lean_ctor_get(x_2, 0);
x_38 = lean_ctor_get(x_2, 1);
x_39 = lean_ctor_get(x_2, 2);
x_40 = lean_ctor_get(x_2, 3);
x_41 = lean_ctor_get(x_2, 4);
x_42 = lean_ctor_get(x_2, 5);
x_43 = lean_ctor_get(x_2, 6);
x_44 = lean_ctor_get(x_2, 8);
x_45 = lean_ctor_get(x_2, 9);
x_46 = lean_ctor_get_uint8(x_2, sizeof(void*)*10);
lean_inc(x_45);
lean_inc(x_44);
lean_inc(x_43);
lean_inc(x_42);
lean_inc(x_41);
lean_inc(x_40);
lean_inc(x_39);
lean_inc(x_38);
lean_inc(x_37);
lean_dec(x_2);
x_47 = l_Lake_instTypeNameLeanExeDecl_unsafe__1;
x_48 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__5;
x_49 = l_Lake_LeanExe_keyword;
x_50 = l_Lean_replaceRef(x_14, x_23);
lean_dec(x_23);
lean_dec(x_14);
x_51 = lean_alloc_ctor(0, 10, 1);
lean_ctor_set(x_51, 0, x_37);
lean_ctor_set(x_51, 1, x_38);
lean_ctor_set(x_51, 2, x_39);
lean_ctor_set(x_51, 3, x_40);
lean_ctor_set(x_51, 4, x_41);
lean_ctor_set(x_51, 5, x_42);
lean_ctor_set(x_51, 6, x_43);
lean_ctor_set(x_51, 7, x_50);
lean_ctor_set(x_51, 8, x_44);
lean_ctor_set(x_51, 9, x_45);
lean_ctor_set_uint8(x_51, sizeof(void*)*10, x_46);
lean_inc(x_3);
lean_inc_ref(x_51);
x_52 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand_spec__0(x_48, x_49, x_49, x_47, x_21, x_20, x_19, x_18, x_51, x_3);
if (lean_obj_tag(x_52) == 0)
{
lean_object* x_53; lean_object* x_54; lean_object* x_55; 
x_53 = lean_ctor_get(x_52, 0);
lean_inc(x_53);
lean_dec_ref(x_52);
lean_inc(x_53);
x_54 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCommand___boxed), 4, 1);
lean_closure_set(x_54, 0, x_53);
x_55 = l_Lean_Elab_Command_withMacroExpansion___redArg(x_1, x_53, x_54, x_51, x_3);
return x_55;
}
else
{
lean_object* x_56; lean_object* x_57; lean_object* x_58; 
lean_dec_ref(x_51);
lean_dec(x_3);
lean_dec(x_1);
x_56 = lean_ctor_get(x_52, 0);
lean_inc(x_56);
if (lean_is_exclusive(x_52)) {
 lean_ctor_release(x_52, 0);
 x_57 = x_52;
} else {
 lean_dec_ref(x_52);
 x_57 = lean_box(0);
}
if (lean_is_scalar(x_57)) {
 x_58 = lean_alloc_ctor(1, 1, 0);
} else {
 x_58 = x_57;
}
lean_ctor_set(x_58, 0, x_56);
return x_58;
}
}
}
else
{
uint8_t x_59; 
lean_dec(x_21);
lean_dec(x_20);
lean_dec(x_19);
lean_dec(x_18);
lean_dec(x_14);
lean_dec(x_3);
lean_dec_ref(x_2);
lean_dec(x_1);
x_59 = !lean_is_exclusive(x_22);
if (x_59 == 0)
{
return x_22;
}
else
{
lean_object* x_60; lean_object* x_61; 
x_60 = lean_ctor_get(x_22, 0);
lean_inc(x_60);
lean_dec(x_22);
x_61 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_61, 0, x_60);
return x_61;
}
}
}
block_70:
{
lean_object* x_65; 
x_65 = l_Lean_Syntax_getOptional_x3f(x_10);
lean_dec(x_10);
if (lean_obj_tag(x_65) == 0)
{
lean_object* x_66; 
x_66 = lean_box(0);
x_19 = x_63;
x_20 = x_64;
x_21 = x_66;
goto block_62;
}
else
{
uint8_t x_67; 
x_67 = !lean_is_exclusive(x_65);
if (x_67 == 0)
{
x_19 = x_63;
x_20 = x_64;
x_21 = x_65;
goto block_62;
}
else
{
lean_object* x_68; lean_object* x_69; 
x_68 = lean_ctor_get(x_65, 0);
lean_inc(x_68);
lean_dec(x_65);
x_69 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_69, 0, x_68);
x_19 = x_63;
x_20 = x_64;
x_21 = x_69;
goto block_62;
}
}
}
block_77:
{
lean_object* x_72; 
x_72 = l_Lean_Syntax_getOptional_x3f(x_12);
lean_dec(x_12);
if (lean_obj_tag(x_72) == 0)
{
lean_object* x_73; 
x_73 = lean_box(0);
x_63 = x_71;
x_64 = x_73;
goto block_70;
}
else
{
uint8_t x_74; 
x_74 = !lean_is_exclusive(x_72);
if (x_74 == 0)
{
x_63 = x_71;
x_64 = x_72;
goto block_70;
}
else
{
lean_object* x_75; lean_object* x_76; 
x_75 = lean_ctor_get(x_72, 0);
lean_inc(x_75);
lean_dec(x_72);
x_76 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_76, 0, x_75);
x_63 = x_71;
x_64 = x_76;
goto block_70;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand(x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6);
return x_8;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; 
x_12 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
return x_12;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand__1___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabLeanExeCommand", 18, 18);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand__1___closed__0;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__9;
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand__1() {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1___closed__0;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__1;
x_4 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand__1___closed__1;
x_5 = lean_alloc_closure((void*)(l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___boxed), 4, 0);
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___redArg(x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand__1___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand__1();
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("inputFileCommand", 16, 16);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__0;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ill-formed input_file declaration", 33, 33);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__2;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("InputFileConfig", 15, 15);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__4;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_107; uint8_t x_108; 
x_83 = l_Lake_InputFileConfig_instConfigInfo;
x_107 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__5;
lean_inc(x_4);
x_108 = l_Lean_Syntax_isOfKind(x_4, x_107);
if (x_108 == 0)
{
lean_object* x_109; lean_object* x_110; 
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_109 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_110 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_109, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_110;
}
else
{
lean_object* x_111; lean_object* x_112; uint8_t x_113; 
x_111 = lean_unsigned_to_nat(0u);
x_112 = l_Lean_Syntax_getArg(x_4, x_111);
lean_inc(x_112);
x_113 = l_Lean_Syntax_matchesNull(x_112, x_111);
if (x_113 == 0)
{
lean_object* x_114; uint8_t x_115; 
x_114 = lean_unsigned_to_nat(1u);
lean_inc(x_112);
x_115 = l_Lean_Syntax_matchesNull(x_112, x_114);
if (x_115 == 0)
{
lean_object* x_116; lean_object* x_117; 
lean_dec(x_112);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_116 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_117 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_116, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_117;
}
else
{
lean_object* x_118; lean_object* x_119; uint8_t x_120; 
x_118 = l_Lean_Syntax_getArg(x_112, x_111);
lean_dec(x_112);
x_119 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__9;
lean_inc(x_118);
x_120 = l_Lean_Syntax_isOfKind(x_118, x_119);
if (x_120 == 0)
{
lean_object* x_121; uint8_t x_122; 
x_121 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__11;
lean_inc(x_118);
x_122 = l_Lean_Syntax_isOfKind(x_118, x_121);
if (x_122 == 0)
{
lean_object* x_123; lean_object* x_124; 
lean_dec(x_118);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_123 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_124 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_123, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_124;
}
else
{
lean_object* x_125; lean_object* x_126; uint8_t x_127; 
x_125 = l_Lean_Syntax_getArg(x_118, x_111);
x_126 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__13;
lean_inc(x_125);
x_127 = l_Lean_Syntax_isOfKind(x_125, x_126);
if (x_127 == 0)
{
lean_object* x_128; lean_object* x_129; 
lean_dec(x_125);
lean_dec(x_118);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_128 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_129 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_128, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_129;
}
else
{
lean_object* x_130; lean_object* x_131; uint8_t x_132; 
x_130 = l_Lean_Syntax_getArg(x_125, x_114);
x_131 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__15;
lean_inc(x_130);
x_132 = l_Lean_Syntax_isOfKind(x_130, x_131);
if (x_132 == 0)
{
lean_object* x_133; lean_object* x_134; 
lean_dec(x_130);
lean_dec(x_125);
lean_dec(x_118);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_133 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_134 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_133, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_134;
}
else
{
lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_145; uint8_t x_146; 
x_135 = l_Lean_Syntax_getArg(x_125, x_111);
lean_dec(x_125);
x_136 = l_Lean_Syntax_getArg(x_130, x_111);
lean_dec(x_130);
x_145 = l_Lean_Syntax_getArg(x_118, x_114);
lean_dec(x_118);
x_146 = l_Lean_Syntax_isNone(x_145);
if (x_146 == 0)
{
uint8_t x_147; 
lean_inc(x_145);
x_147 = l_Lean_Syntax_matchesNull(x_145, x_114);
if (x_147 == 0)
{
lean_object* x_148; lean_object* x_149; 
lean_dec(x_145);
lean_dec(x_136);
lean_dec(x_135);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_148 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_149 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_148, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_149;
}
else
{
lean_object* x_150; lean_object* x_151; uint8_t x_152; 
x_150 = l_Lean_Syntax_getArg(x_145, x_111);
lean_dec(x_145);
x_151 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__66;
lean_inc(x_150);
x_152 = l_Lean_Syntax_isOfKind(x_150, x_151);
if (x_152 == 0)
{
lean_object* x_153; lean_object* x_154; 
lean_dec(x_150);
lean_dec(x_136);
lean_dec(x_135);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_153 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_154 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_153, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_154;
}
else
{
lean_object* x_155; 
x_155 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_155, 0, x_150);
x_137 = x_155;
x_138 = x_5;
x_139 = x_6;
x_140 = lean_box(0);
goto block_144;
}
}
}
else
{
lean_object* x_156; 
lean_dec(x_145);
x_156 = lean_box(0);
x_137 = x_156;
x_138 = x_5;
x_139 = x_6;
x_140 = lean_box(0);
goto block_144;
}
block_144:
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; 
x_141 = l_Lean_Syntax_getArgs(x_136);
lean_dec(x_136);
x_142 = l_Lean_Syntax_getHeadInfo(x_135);
lean_dec(x_135);
x_143 = l_Lean_Syntax_TSepArray_getElems___redArg(x_141);
lean_dec_ref(x_141);
x_84 = x_142;
x_85 = x_143;
x_86 = x_137;
x_87 = x_138;
x_88 = x_139;
x_89 = lean_box(0);
goto block_106;
}
}
}
}
}
else
{
lean_object* x_157; lean_object* x_158; uint8_t x_159; 
x_157 = l_Lean_Syntax_getArg(x_118, x_114);
x_158 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__15;
lean_inc(x_157);
x_159 = l_Lean_Syntax_isOfKind(x_157, x_158);
if (x_159 == 0)
{
lean_object* x_160; lean_object* x_161; 
lean_dec(x_157);
lean_dec(x_118);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_160 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_161 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_160, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_161;
}
else
{
lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_172; lean_object* x_173; uint8_t x_174; 
x_162 = l_Lean_Syntax_getArg(x_118, x_111);
x_163 = l_Lean_Syntax_getArg(x_157, x_111);
lean_dec(x_157);
x_172 = lean_unsigned_to_nat(2u);
x_173 = l_Lean_Syntax_getArg(x_118, x_172);
lean_dec(x_118);
x_174 = l_Lean_Syntax_isNone(x_173);
if (x_174 == 0)
{
uint8_t x_175; 
lean_inc(x_173);
x_175 = l_Lean_Syntax_matchesNull(x_173, x_114);
if (x_175 == 0)
{
lean_object* x_176; lean_object* x_177; 
lean_dec(x_173);
lean_dec(x_163);
lean_dec(x_162);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_176 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_177 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_176, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_177;
}
else
{
lean_object* x_178; lean_object* x_179; uint8_t x_180; 
x_178 = l_Lean_Syntax_getArg(x_173, x_111);
lean_dec(x_173);
x_179 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__66;
lean_inc(x_178);
x_180 = l_Lean_Syntax_isOfKind(x_178, x_179);
if (x_180 == 0)
{
lean_object* x_181; lean_object* x_182; 
lean_dec(x_178);
lean_dec(x_163);
lean_dec(x_162);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_181 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_182 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_181, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_182;
}
else
{
lean_object* x_183; 
x_183 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_183, 0, x_178);
x_164 = x_183;
x_165 = x_5;
x_166 = x_6;
x_167 = lean_box(0);
goto block_171;
}
}
}
else
{
lean_object* x_184; 
lean_dec(x_173);
x_184 = lean_box(0);
x_164 = x_184;
x_165 = x_5;
x_166 = x_6;
x_167 = lean_box(0);
goto block_171;
}
block_171:
{
lean_object* x_168; lean_object* x_169; lean_object* x_170; 
x_168 = l_Lean_Syntax_getArgs(x_163);
lean_dec(x_163);
x_169 = l_Lean_Syntax_getHeadInfo(x_162);
lean_dec(x_162);
x_170 = l_Lean_Syntax_TSepArray_getElems___redArg(x_168);
lean_dec_ref(x_168);
x_84 = x_169;
x_85 = x_170;
x_86 = x_164;
x_87 = x_165;
x_88 = x_166;
x_89 = lean_box(0);
goto block_106;
}
}
}
}
}
else
{
lean_object* x_185; lean_object* x_186; lean_object* x_187; 
lean_dec(x_112);
x_185 = lean_box(2);
x_186 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__11;
x_187 = lean_box(0);
x_84 = x_185;
x_85 = x_186;
x_86 = x_187;
x_87 = x_5;
x_88 = x_6;
x_89 = lean_box(0);
goto block_106;
}
}
block_51:
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; 
x_17 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__40;
lean_inc_ref(x_8);
lean_inc_ref(x_15);
lean_inc_ref(x_13);
x_18 = l_Lean_Name_mkStr4(x_13, x_15, x_8, x_17);
x_19 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__41;
lean_inc_ref(x_8);
lean_inc_ref(x_15);
lean_inc_ref(x_13);
x_20 = l_Lean_Name_mkStr4(x_13, x_15, x_8, x_19);
x_21 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__45;
x_22 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__46;
lean_inc(x_12);
x_23 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_23, 0, x_12);
lean_ctor_set(x_23, 1, x_21);
lean_ctor_set(x_23, 2, x_22);
lean_inc_ref_n(x_23, 7);
lean_inc(x_12);
x_24 = l_Lean_Syntax_node7(x_12, x_20, x_23, x_23, x_23, x_23, x_23, x_23, x_23);
x_25 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__0;
lean_inc_ref(x_8);
lean_inc_ref(x_15);
lean_inc_ref(x_13);
x_26 = l_Lean_Name_mkStr4(x_13, x_15, x_8, x_25);
x_27 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__1;
lean_inc(x_12);
x_28 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_28, 0, x_12);
lean_ctor_set(x_28, 1, x_27);
x_29 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__10;
lean_inc_ref(x_8);
lean_inc_ref(x_15);
lean_inc_ref(x_13);
x_30 = l_Lean_Name_mkStr4(x_13, x_15, x_8, x_29);
x_31 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__11;
lean_inc(x_10);
x_32 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_32, 0, x_10);
lean_ctor_set(x_32, 1, x_21);
lean_ctor_set(x_32, 2, x_31);
x_33 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__12;
x_34 = lean_array_push(x_33, x_2);
x_35 = lean_array_push(x_34, x_32);
x_36 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_36, 0, x_10);
lean_ctor_set(x_36, 1, x_30);
lean_ctor_set(x_36, 2, x_35);
x_37 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__13;
lean_inc_ref(x_15);
lean_inc_ref(x_13);
x_38 = l_Lean_Name_mkStr4(x_13, x_15, x_8, x_37);
x_39 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56;
x_40 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__57;
x_41 = l_Lean_Name_mkStr4(x_13, x_15, x_39, x_40);
x_42 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__39;
lean_inc(x_12);
x_43 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_43, 0, x_12);
lean_ctor_set(x_43, 1, x_42);
lean_inc(x_12);
x_44 = l_Lean_Syntax_node2(x_12, x_41, x_43, x_3);
lean_inc(x_12);
x_45 = l_Lean_Syntax_node1(x_12, x_21, x_44);
lean_inc_ref(x_23);
lean_inc(x_12);
x_46 = l_Lean_Syntax_node2(x_12, x_38, x_23, x_45);
lean_inc(x_12);
x_47 = l_Lean_Syntax_node5(x_12, x_26, x_28, x_36, x_46, x_11, x_23);
x_48 = l_Lean_Syntax_node2(x_12, x_18, x_24, x_47);
lean_inc(x_48);
x_49 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCommand___boxed), 4, 1);
lean_closure_set(x_49, 0, x_48);
x_50 = l_Lean_Elab_Command_withMacroExpansion___redArg(x_4, x_48, x_49, x_9, x_14);
return x_50;
}
block_82:
{
lean_object* x_62; 
x_62 = l_Lean_Elab_Command_getRef___redArg(x_55);
if (lean_obj_tag(x_62) == 0)
{
lean_object* x_63; lean_object* x_64; 
x_63 = lean_ctor_get(x_62, 0);
lean_inc(x_63);
lean_dec_ref(x_62);
x_64 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_55);
if (lean_obj_tag(x_64) == 0)
{
lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; lean_object* x_74; 
lean_dec_ref(x_64);
x_65 = lean_ctor_get(x_55, 5);
x_66 = l_Lean_mkOptionalNode(x_61);
x_67 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__0;
x_68 = lean_array_push(x_67, x_56);
x_69 = lean_array_push(x_68, x_57);
x_70 = lean_array_push(x_69, x_66);
x_71 = lean_box(2);
x_72 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_72, 0, x_71);
lean_ctor_set(x_72, 1, x_53);
lean_ctor_set(x_72, 2, x_70);
x_73 = 0;
x_74 = l_Lean_SourceInfo_fromRef(x_63, x_73);
lean_dec(x_63);
if (lean_obj_tag(x_65) == 0)
{
lean_object* x_75; 
x_75 = l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___redArg(x_60);
lean_dec_ref(x_75);
x_8 = x_54;
x_9 = x_55;
x_10 = x_71;
x_11 = x_72;
x_12 = x_74;
x_13 = x_58;
x_14 = x_60;
x_15 = x_59;
x_16 = lean_box(0);
goto block_51;
}
else
{
x_8 = x_54;
x_9 = x_55;
x_10 = x_71;
x_11 = x_72;
x_12 = x_74;
x_13 = x_58;
x_14 = x_60;
x_15 = x_59;
x_16 = lean_box(0);
goto block_51;
}
}
else
{
uint8_t x_76; 
lean_dec(x_63);
lean_dec(x_61);
lean_dec(x_60);
lean_dec_ref(x_59);
lean_dec_ref(x_58);
lean_dec(x_57);
lean_dec(x_56);
lean_dec_ref(x_55);
lean_dec_ref(x_54);
lean_dec(x_53);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_76 = !lean_is_exclusive(x_64);
if (x_76 == 0)
{
return x_64;
}
else
{
lean_object* x_77; lean_object* x_78; 
x_77 = lean_ctor_get(x_64, 0);
lean_inc(x_77);
lean_dec(x_64);
x_78 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_78, 0, x_77);
return x_78;
}
}
}
else
{
uint8_t x_79; 
lean_dec(x_61);
lean_dec(x_60);
lean_dec_ref(x_59);
lean_dec_ref(x_58);
lean_dec(x_57);
lean_dec(x_56);
lean_dec_ref(x_55);
lean_dec_ref(x_54);
lean_dec(x_53);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_79 = !lean_is_exclusive(x_62);
if (x_79 == 0)
{
return x_62;
}
else
{
lean_object* x_80; lean_object* x_81; 
x_80 = lean_ctor_get(x_62, 0);
lean_inc(x_80);
lean_dec(x_62);
x_81 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_81, 0, x_80);
return x_81;
}
}
}
block_106:
{
lean_object* x_90; lean_object* x_91; 
x_90 = lean_ctor_get(x_83, 1);
lean_inc(x_90);
lean_inc_ref(x_87);
x_91 = l___private_Lake_DSL_DeclUtil_0__Lake_DSL_mkConfigFields(x_1, x_90, x_85, x_87, x_88);
lean_dec_ref(x_85);
lean_dec(x_90);
if (lean_obj_tag(x_91) == 0)
{
lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; 
x_92 = lean_ctor_get(x_91, 0);
lean_inc(x_92);
lean_dec_ref(x_91);
x_93 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__1;
x_94 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_94, 0, x_84);
lean_ctor_set(x_94, 1, x_93);
x_95 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54;
x_96 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55;
x_97 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__59;
x_98 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__3;
if (lean_obj_tag(x_86) == 0)
{
lean_object* x_99; 
x_99 = lean_box(0);
x_52 = lean_box(0);
x_53 = x_98;
x_54 = x_97;
x_55 = x_87;
x_56 = x_94;
x_57 = x_92;
x_58 = x_95;
x_59 = x_96;
x_60 = x_88;
x_61 = x_99;
goto block_82;
}
else
{
uint8_t x_100; 
x_100 = !lean_is_exclusive(x_86);
if (x_100 == 0)
{
x_52 = lean_box(0);
x_53 = x_98;
x_54 = x_97;
x_55 = x_87;
x_56 = x_94;
x_57 = x_92;
x_58 = x_95;
x_59 = x_96;
x_60 = x_88;
x_61 = x_86;
goto block_82;
}
else
{
lean_object* x_101; lean_object* x_102; 
x_101 = lean_ctor_get(x_86, 0);
lean_inc(x_101);
lean_dec(x_86);
x_102 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_102, 0, x_101);
x_52 = lean_box(0);
x_53 = x_98;
x_54 = x_97;
x_55 = x_87;
x_56 = x_94;
x_57 = x_92;
x_58 = x_95;
x_59 = x_96;
x_60 = x_88;
x_61 = x_102;
goto block_82;
}
}
}
else
{
uint8_t x_103; 
lean_dec(x_88);
lean_dec_ref(x_87);
lean_dec(x_86);
lean_dec(x_84);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_103 = !lean_is_exclusive(x_91);
if (x_103 == 0)
{
return x_91;
}
else
{
lean_object* x_104; lean_object* x_105; 
x_104 = lean_ctor_get(x_91, 0);
lean_inc(x_104);
lean_dec(x_91);
x_105 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_105, 0, x_104);
return x_105;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_230; 
x_230 = l_Lean_Elab_Command_getRef___redArg(x_9);
if (lean_obj_tag(x_230) == 0)
{
lean_object* x_231; lean_object* x_232; 
x_231 = lean_ctor_get(x_230, 0);
lean_inc(x_231);
lean_dec_ref(x_230);
x_232 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_9);
if (lean_obj_tag(x_232) == 0)
{
lean_object* x_233; lean_object* x_234; uint8_t x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_320; lean_object* x_321; lean_object* x_322; 
x_233 = lean_ctor_get(x_232, 0);
lean_inc(x_233);
lean_dec_ref(x_232);
x_234 = lean_ctor_get(x_9, 5);
lean_inc(x_234);
x_235 = 0;
x_320 = l_Lean_SourceInfo_fromRef(x_231, x_235);
lean_dec(x_231);
if (lean_obj_tag(x_234) == 0)
{
lean_object* x_356; lean_object* x_357; 
x_356 = l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___redArg(x_10);
x_357 = lean_ctor_get(x_356, 0);
lean_inc(x_357);
lean_dec_ref(x_356);
x_321 = x_357;
x_322 = lean_box(0);
goto block_355;
}
else
{
lean_object* x_358; 
x_358 = lean_ctor_get(x_234, 0);
lean_inc(x_358);
x_321 = x_358;
x_322 = lean_box(0);
goto block_355;
}
block_283:
{
lean_object* x_252; 
x_252 = l_Lean_mkIdentFromRef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__8___redArg(x_4, x_235, x_9);
if (lean_obj_tag(x_252) == 0)
{
lean_object* x_253; lean_object* x_254; 
x_253 = lean_ctor_get(x_252, 0);
lean_inc(x_253);
lean_dec_ref(x_252);
x_254 = l_Lean_Elab_Command_getRef___redArg(x_9);
if (lean_obj_tag(x_254) == 0)
{
lean_object* x_255; lean_object* x_256; 
x_255 = lean_ctor_get(x_254, 0);
lean_inc(x_255);
lean_dec_ref(x_254);
x_256 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___lam__0(x_9, x_10);
if (lean_obj_tag(x_256) == 0)
{
lean_object* x_257; lean_object* x_258; 
x_257 = lean_ctor_get(x_256, 0);
lean_inc(x_257);
lean_dec_ref(x_256);
x_258 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_9);
lean_dec_ref(x_9);
if (lean_obj_tag(x_258) == 0)
{
lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; 
x_259 = lean_ctor_get(x_258, 0);
lean_inc(x_259);
lean_dec_ref(x_258);
lean_inc_ref(x_249);
lean_inc(x_243);
lean_inc(x_244);
x_260 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_260, 0, x_244);
lean_ctor_set(x_260, 1, x_243);
lean_ctor_set(x_260, 2, x_249);
lean_inc_ref(x_260);
lean_inc(x_244);
x_261 = l_Lean_Syntax_node1(x_244, x_240, x_260);
lean_inc(x_244);
x_262 = l_Lean_Syntax_node2(x_244, x_250, x_248, x_260);
x_263 = l_Lean_Syntax_node2(x_244, x_238, x_261, x_262);
x_264 = lean_unsigned_to_nat(2u);
x_265 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__12;
x_266 = lean_array_push(x_265, x_241);
x_267 = lean_array_push(x_266, x_263);
x_268 = l_Lake_DSL_expandAttrs(x_6);
x_269 = l_Array_append___redArg(x_267, x_268);
lean_dec_ref(x_268);
x_270 = l_Lake_Name_quoteFrom(x_255, x_3, x_235);
if (lean_obj_tag(x_234) == 0)
{
lean_object* x_271; lean_object* x_272; 
x_271 = l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___redArg(x_10);
lean_dec(x_10);
x_272 = lean_ctor_get(x_271, 0);
lean_inc(x_272);
lean_dec_ref(x_271);
x_132 = x_236;
x_133 = x_237;
x_134 = x_264;
x_135 = x_239;
x_136 = x_269;
x_137 = x_257;
x_138 = x_270;
x_139 = x_242;
x_140 = x_243;
x_141 = x_245;
x_142 = x_259;
x_143 = x_253;
x_144 = x_247;
x_145 = x_246;
x_146 = x_249;
x_147 = x_272;
x_148 = lean_box(0);
goto block_229;
}
else
{
lean_object* x_273; 
lean_dec(x_10);
x_273 = lean_ctor_get(x_234, 0);
lean_inc(x_273);
lean_dec_ref(x_234);
x_132 = x_236;
x_133 = x_237;
x_134 = x_264;
x_135 = x_239;
x_136 = x_269;
x_137 = x_257;
x_138 = x_270;
x_139 = x_242;
x_140 = x_243;
x_141 = x_245;
x_142 = x_259;
x_143 = x_253;
x_144 = x_247;
x_145 = x_246;
x_146 = x_249;
x_147 = x_273;
x_148 = lean_box(0);
goto block_229;
}
}
else
{
uint8_t x_274; 
lean_dec(x_257);
lean_dec(x_255);
lean_dec(x_253);
lean_dec(x_250);
lean_dec_ref(x_249);
lean_dec(x_248);
lean_dec(x_247);
lean_dec_ref(x_246);
lean_dec_ref(x_245);
lean_dec(x_244);
lean_dec(x_243);
lean_dec(x_242);
lean_dec(x_241);
lean_dec(x_240);
lean_dec(x_239);
lean_dec(x_238);
lean_dec_ref(x_237);
lean_dec(x_236);
lean_dec(x_234);
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_274 = !lean_is_exclusive(x_258);
if (x_274 == 0)
{
return x_258;
}
else
{
lean_object* x_275; lean_object* x_276; 
x_275 = lean_ctor_get(x_258, 0);
lean_inc(x_275);
lean_dec(x_258);
x_276 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_276, 0, x_275);
return x_276;
}
}
}
else
{
uint8_t x_277; 
lean_dec(x_255);
lean_dec(x_253);
lean_dec(x_250);
lean_dec_ref(x_249);
lean_dec(x_248);
lean_dec(x_247);
lean_dec_ref(x_246);
lean_dec_ref(x_245);
lean_dec(x_244);
lean_dec(x_243);
lean_dec(x_242);
lean_dec(x_241);
lean_dec(x_240);
lean_dec(x_239);
lean_dec(x_238);
lean_dec_ref(x_237);
lean_dec(x_236);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_277 = !lean_is_exclusive(x_256);
if (x_277 == 0)
{
return x_256;
}
else
{
lean_object* x_278; lean_object* x_279; 
x_278 = lean_ctor_get(x_256, 0);
lean_inc(x_278);
lean_dec(x_256);
x_279 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_279, 0, x_278);
return x_279;
}
}
}
else
{
uint8_t x_280; 
lean_dec(x_253);
lean_dec(x_250);
lean_dec_ref(x_249);
lean_dec(x_248);
lean_dec(x_247);
lean_dec_ref(x_246);
lean_dec_ref(x_245);
lean_dec(x_244);
lean_dec(x_243);
lean_dec(x_242);
lean_dec(x_241);
lean_dec(x_240);
lean_dec(x_239);
lean_dec(x_238);
lean_dec_ref(x_237);
lean_dec(x_236);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_280 = !lean_is_exclusive(x_254);
if (x_280 == 0)
{
return x_254;
}
else
{
lean_object* x_281; lean_object* x_282; 
x_281 = lean_ctor_get(x_254, 0);
lean_inc(x_281);
lean_dec(x_254);
x_282 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_282, 0, x_281);
return x_282;
}
}
}
else
{
lean_dec(x_250);
lean_dec_ref(x_249);
lean_dec(x_248);
lean_dec(x_247);
lean_dec_ref(x_246);
lean_dec_ref(x_245);
lean_dec(x_244);
lean_dec(x_243);
lean_dec(x_242);
lean_dec(x_241);
lean_dec(x_240);
lean_dec(x_239);
lean_dec(x_238);
lean_dec_ref(x_237);
lean_dec(x_236);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
return x_252;
}
}
block_319:
{
lean_object* x_293; 
x_293 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___lam__0(x_9, x_10);
if (lean_obj_tag(x_293) == 0)
{
lean_object* x_294; lean_object* x_295; 
x_294 = lean_ctor_get(x_293, 0);
lean_inc(x_294);
lean_dec_ref(x_293);
x_295 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_9);
if (lean_obj_tag(x_295) == 0)
{
lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; 
lean_dec_ref(x_295);
x_296 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54;
x_297 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55;
x_298 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56;
x_299 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__14;
x_300 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__15;
x_301 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__45;
x_302 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__46;
lean_inc(x_288);
x_303 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_303, 0, x_288);
lean_ctor_set(x_303, 1, x_301);
lean_ctor_set(x_303, 2, x_302);
lean_inc_ref(x_303);
lean_inc(x_288);
x_304 = l_Lean_Syntax_node1(x_288, x_300, x_303);
x_305 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__16;
x_306 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__23;
x_307 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__25;
x_308 = l_Lean_addMacroScope(x_291, x_307, x_289);
lean_inc(x_286);
lean_inc(x_288);
x_309 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_309, 0, x_288);
lean_ctor_set(x_309, 1, x_306);
lean_ctor_set(x_309, 2, x_308);
lean_ctor_set(x_309, 3, x_286);
lean_inc(x_288);
x_310 = l_Lean_Syntax_node2(x_288, x_305, x_309, x_303);
x_311 = l_Lean_Syntax_node2(x_288, x_299, x_304, x_310);
if (lean_obj_tag(x_234) == 0)
{
lean_object* x_312; 
x_312 = l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___redArg(x_10);
lean_dec_ref(x_312);
x_236 = x_284;
x_237 = x_298;
x_238 = x_299;
x_239 = x_287;
x_240 = x_300;
x_241 = x_311;
x_242 = x_290;
x_243 = x_301;
x_244 = x_294;
x_245 = x_297;
x_246 = x_296;
x_247 = x_286;
x_248 = x_285;
x_249 = x_302;
x_250 = x_305;
x_251 = lean_box(0);
goto block_283;
}
else
{
x_236 = x_284;
x_237 = x_298;
x_238 = x_299;
x_239 = x_287;
x_240 = x_300;
x_241 = x_311;
x_242 = x_290;
x_243 = x_301;
x_244 = x_294;
x_245 = x_297;
x_246 = x_296;
x_247 = x_286;
x_248 = x_285;
x_249 = x_302;
x_250 = x_305;
x_251 = lean_box(0);
goto block_283;
}
}
else
{
uint8_t x_313; 
lean_dec(x_294);
lean_dec(x_291);
lean_dec(x_290);
lean_dec(x_289);
lean_dec(x_288);
lean_dec(x_287);
lean_dec(x_286);
lean_dec(x_285);
lean_dec(x_284);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_313 = !lean_is_exclusive(x_295);
if (x_313 == 0)
{
return x_295;
}
else
{
lean_object* x_314; lean_object* x_315; 
x_314 = lean_ctor_get(x_295, 0);
lean_inc(x_314);
lean_dec(x_295);
x_315 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_315, 0, x_314);
return x_315;
}
}
}
else
{
uint8_t x_316; 
lean_dec(x_291);
lean_dec(x_290);
lean_dec(x_289);
lean_dec(x_288);
lean_dec(x_287);
lean_dec(x_286);
lean_dec(x_285);
lean_dec(x_284);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_316 = !lean_is_exclusive(x_293);
if (x_316 == 0)
{
return x_293;
}
else
{
lean_object* x_317; lean_object* x_318; 
x_317 = lean_ctor_get(x_293, 0);
lean_inc(x_317);
lean_dec(x_293);
x_318 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_318, 0, x_317);
return x_318;
}
}
}
block_355:
{
lean_object* x_323; 
lean_inc(x_10);
lean_inc_ref(x_9);
x_323 = l_Lake_DSL_mkConfigDeclIdent(x_7, x_9, x_10);
if (lean_obj_tag(x_323) == 0)
{
lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; 
x_324 = lean_ctor_get(x_323, 0);
lean_inc(x_324);
lean_dec_ref(x_323);
x_325 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__18;
x_326 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__19;
x_327 = l_Lean_addMacroScope(x_321, x_326, x_233);
x_328 = lean_box(0);
x_329 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_329, 0, x_320);
lean_ctor_set(x_329, 1, x_325);
lean_ctor_set(x_329, 2, x_327);
lean_ctor_set(x_329, 3, x_328);
x_330 = l_Lean_TSyntax_getId(x_324);
lean_inc(x_324);
x_331 = l_Lake_Name_quoteFrom(x_324, x_330, x_235);
x_332 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__53;
lean_inc(x_331);
x_333 = lean_array_push(x_332, x_331);
lean_inc(x_1);
x_334 = l_Lean_Syntax_mkCApp(x_1, x_333);
lean_inc(x_10);
lean_inc_ref(x_9);
lean_inc_ref(x_329);
x_335 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand_spec__0_spec__0(x_1, x_329, x_334, x_8, x_9, x_10);
if (lean_obj_tag(x_335) == 0)
{
lean_object* x_336; 
lean_dec_ref(x_335);
x_336 = l_Lean_mkIdentFromRef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__8___redArg(x_2, x_235, x_9);
if (lean_obj_tag(x_336) == 0)
{
lean_object* x_337; lean_object* x_338; 
x_337 = lean_ctor_get(x_336, 0);
lean_inc(x_337);
lean_dec_ref(x_336);
x_338 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___lam__0(x_9, x_10);
if (lean_obj_tag(x_338) == 0)
{
lean_object* x_339; lean_object* x_340; 
x_339 = lean_ctor_get(x_338, 0);
lean_inc(x_339);
lean_dec_ref(x_338);
x_340 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_9);
if (lean_obj_tag(x_340) == 0)
{
if (lean_obj_tag(x_234) == 0)
{
lean_object* x_341; lean_object* x_342; lean_object* x_343; 
x_341 = lean_ctor_get(x_340, 0);
lean_inc(x_341);
lean_dec_ref(x_340);
x_342 = l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___redArg(x_10);
x_343 = lean_ctor_get(x_342, 0);
lean_inc(x_343);
lean_dec_ref(x_342);
x_284 = x_329;
x_285 = x_337;
x_286 = x_328;
x_287 = x_331;
x_288 = x_339;
x_289 = x_341;
x_290 = x_324;
x_291 = x_343;
x_292 = lean_box(0);
goto block_319;
}
else
{
lean_object* x_344; lean_object* x_345; 
x_344 = lean_ctor_get(x_340, 0);
lean_inc(x_344);
lean_dec_ref(x_340);
x_345 = lean_ctor_get(x_234, 0);
lean_inc(x_345);
x_284 = x_329;
x_285 = x_337;
x_286 = x_328;
x_287 = x_331;
x_288 = x_339;
x_289 = x_344;
x_290 = x_324;
x_291 = x_345;
x_292 = lean_box(0);
goto block_319;
}
}
else
{
uint8_t x_346; 
lean_dec(x_339);
lean_dec(x_337);
lean_dec(x_331);
lean_dec_ref(x_329);
lean_dec(x_324);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_346 = !lean_is_exclusive(x_340);
if (x_346 == 0)
{
return x_340;
}
else
{
lean_object* x_347; lean_object* x_348; 
x_347 = lean_ctor_get(x_340, 0);
lean_inc(x_347);
lean_dec(x_340);
x_348 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_348, 0, x_347);
return x_348;
}
}
}
else
{
uint8_t x_349; 
lean_dec(x_337);
lean_dec(x_331);
lean_dec_ref(x_329);
lean_dec(x_324);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_349 = !lean_is_exclusive(x_338);
if (x_349 == 0)
{
return x_338;
}
else
{
lean_object* x_350; lean_object* x_351; 
x_350 = lean_ctor_get(x_338, 0);
lean_inc(x_350);
lean_dec(x_338);
x_351 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_351, 0, x_350);
return x_351;
}
}
}
else
{
lean_dec(x_331);
lean_dec_ref(x_329);
lean_dec(x_324);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
return x_336;
}
}
else
{
uint8_t x_352; 
lean_dec(x_331);
lean_dec_ref(x_329);
lean_dec(x_324);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_352 = !lean_is_exclusive(x_335);
if (x_352 == 0)
{
return x_335;
}
else
{
lean_object* x_353; lean_object* x_354; 
x_353 = lean_ctor_get(x_335, 0);
lean_inc(x_353);
lean_dec(x_335);
x_354 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_354, 0, x_353);
return x_354;
}
}
}
else
{
lean_dec(x_321);
lean_dec(x_320);
lean_dec(x_234);
lean_dec(x_233);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_8);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_323;
}
}
}
else
{
uint8_t x_359; 
lean_dec(x_231);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_359 = !lean_is_exclusive(x_232);
if (x_359 == 0)
{
return x_232;
}
else
{
lean_object* x_360; lean_object* x_361; 
x_360 = lean_ctor_get(x_232, 0);
lean_inc(x_360);
lean_dec(x_232);
x_361 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_361, 0, x_360);
return x_361;
}
}
}
else
{
uint8_t x_362; 
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_362 = !lean_is_exclusive(x_230);
if (x_362 == 0)
{
return x_230;
}
else
{
lean_object* x_363; lean_object* x_364; 
x_363 = lean_ctor_get(x_230, 0);
lean_inc(x_363);
lean_dec(x_230);
x_364 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_364, 0, x_363);
return x_364;
}
}
block_131:
{
lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; 
lean_inc_ref(x_41);
x_43 = l_Array_append___redArg(x_41, x_42);
lean_dec_ref(x_42);
lean_inc(x_22);
lean_inc(x_18);
x_44 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_44, 0, x_18);
lean_ctor_set(x_44, 1, x_22);
lean_ctor_set(x_44, 2, x_43);
lean_inc_n(x_40, 6);
lean_inc(x_33);
lean_inc(x_18);
x_45 = l_Lean_Syntax_node7(x_18, x_33, x_44, x_40, x_40, x_40, x_40, x_40, x_40);
x_46 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__9;
lean_inc_ref(x_21);
lean_inc_ref(x_35);
lean_inc_ref(x_26);
x_47 = l_Lean_Name_mkStr4(x_26, x_35, x_21, x_46);
lean_inc(x_18);
x_48 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_48, 0, x_18);
lean_ctor_set(x_48, 1, x_46);
x_49 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__10;
lean_inc_ref(x_21);
lean_inc_ref(x_35);
lean_inc_ref(x_26);
x_50 = l_Lean_Name_mkStr4(x_26, x_35, x_21, x_49);
x_51 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__11;
x_52 = lean_box(2);
lean_inc(x_22);
x_53 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_53, 0, x_52);
lean_ctor_set(x_53, 1, x_22);
lean_ctor_set(x_53, 2, x_51);
x_54 = lean_mk_empty_array_with_capacity(x_13);
lean_inc(x_20);
x_55 = lean_array_push(x_54, x_20);
x_56 = lean_array_push(x_55, x_53);
lean_inc(x_50);
x_57 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_57, 0, x_52);
lean_ctor_set(x_57, 1, x_50);
lean_ctor_set(x_57, 2, x_56);
x_58 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__13;
lean_inc_ref(x_21);
lean_inc_ref(x_35);
lean_inc_ref(x_26);
x_59 = l_Lean_Name_mkStr4(x_26, x_35, x_21, x_58);
x_60 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__57;
lean_inc_ref(x_29);
lean_inc_ref(x_35);
lean_inc_ref(x_26);
x_61 = l_Lean_Name_mkStr4(x_26, x_35, x_29, x_60);
lean_inc(x_24);
lean_inc(x_61);
lean_inc(x_18);
x_62 = l_Lean_Syntax_node2(x_18, x_61, x_24, x_37);
lean_inc(x_22);
lean_inc(x_18);
x_63 = l_Lean_Syntax_node1(x_18, x_22, x_62);
lean_inc(x_40);
lean_inc(x_59);
lean_inc(x_18);
x_64 = l_Lean_Syntax_node2(x_18, x_59, x_40, x_63);
x_65 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__60;
lean_inc_ref(x_21);
lean_inc_ref(x_35);
lean_inc_ref(x_26);
x_66 = l_Lean_Name_mkStr4(x_26, x_35, x_21, x_65);
x_67 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__1;
x_68 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__2;
lean_inc_ref(x_14);
x_69 = l_Lean_Name_mkStr3(x_14, x_28, x_68);
lean_inc(x_25);
lean_inc(x_69);
lean_inc(x_30);
x_70 = l_Lean_addMacroScope(x_30, x_69, x_25);
lean_inc(x_31);
x_71 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_71, 0, x_69);
lean_ctor_set(x_71, 1, x_31);
lean_inc(x_38);
x_72 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_72, 0, x_71);
lean_ctor_set(x_72, 1, x_38);
lean_inc(x_18);
x_73 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_73, 0, x_18);
lean_ctor_set(x_73, 1, x_67);
lean_ctor_set(x_73, 2, x_70);
lean_ctor_set(x_73, 3, x_72);
lean_inc(x_22);
lean_inc(x_18);
x_74 = l_Lean_Syntax_node4(x_18, x_22, x_19, x_15, x_34, x_12);
lean_inc(x_18);
x_75 = l_Lean_Syntax_node2(x_18, x_36, x_73, x_74);
x_76 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__62;
x_77 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__63;
lean_inc_ref(x_35);
lean_inc_ref(x_26);
x_78 = l_Lean_Name_mkStr4(x_26, x_35, x_76, x_77);
lean_inc_n(x_40, 2);
lean_inc(x_18);
x_79 = l_Lean_Syntax_node2(x_18, x_78, x_40, x_40);
lean_inc(x_40);
lean_inc(x_79);
lean_inc(x_23);
lean_inc(x_66);
lean_inc(x_18);
x_80 = l_Lean_Syntax_node4(x_18, x_66, x_23, x_75, x_79, x_40);
lean_inc(x_18);
x_81 = l_Lean_Syntax_node4(x_18, x_47, x_48, x_57, x_64, x_80);
lean_inc(x_27);
lean_inc(x_18);
x_82 = l_Lean_Syntax_node2(x_18, x_27, x_45, x_81);
x_83 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__5;
lean_inc_ref(x_29);
lean_inc_ref(x_35);
lean_inc_ref(x_26);
x_84 = l_Lean_Name_mkStr4(x_26, x_35, x_29, x_83);
x_85 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__6;
lean_inc(x_18);
x_86 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_86, 0, x_18);
lean_ctor_set(x_86, 1, x_85);
x_87 = l_Lean_Syntax_SepArray_ofElems(x_39, x_17);
lean_dec_ref(x_17);
x_88 = l_Array_append___redArg(x_41, x_87);
lean_dec_ref(x_87);
lean_inc(x_22);
lean_inc(x_18);
x_89 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_89, 0, x_18);
lean_ctor_set(x_89, 1, x_22);
lean_ctor_set(x_89, 2, x_88);
x_90 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__8;
lean_inc(x_18);
x_91 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_91, 0, x_18);
lean_ctor_set(x_91, 1, x_90);
lean_inc(x_18);
x_92 = l_Lean_Syntax_node3(x_18, x_84, x_86, x_89, x_91);
lean_inc(x_22);
lean_inc(x_18);
x_93 = l_Lean_Syntax_node1(x_18, x_22, x_92);
lean_inc_n(x_40, 6);
lean_inc(x_18);
x_94 = l_Lean_Syntax_node7(x_18, x_33, x_40, x_93, x_40, x_40, x_40, x_40, x_40);
x_95 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__0;
lean_inc_ref(x_35);
lean_inc_ref(x_26);
x_96 = l_Lean_Name_mkStr4(x_26, x_35, x_21, x_95);
x_97 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__1;
lean_inc(x_18);
x_98 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_98, 0, x_18);
lean_ctor_set(x_98, 1, x_97);
x_99 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__3;
x_100 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__4;
lean_inc(x_25);
lean_inc(x_30);
x_101 = l_Lean_addMacroScope(x_30, x_100, x_25);
lean_inc(x_38);
lean_inc(x_18);
x_102 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_102, 0, x_18);
lean_ctor_set(x_102, 1, x_99);
lean_ctor_set(x_102, 2, x_101);
lean_ctor_set(x_102, 3, x_38);
lean_inc(x_40);
lean_inc(x_18);
x_103 = l_Lean_Syntax_node2(x_18, x_50, x_102, x_40);
x_104 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__5;
x_105 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__6;
x_106 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__7;
lean_inc(x_25);
lean_inc(x_30);
x_107 = l_Lean_addMacroScope(x_30, x_106, x_25);
x_108 = l_Lean_Name_mkStr2(x_14, x_104);
lean_inc(x_108);
x_109 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_109, 0, x_108);
lean_ctor_set(x_109, 1, x_31);
x_110 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_110, 0, x_108);
lean_inc(x_38);
x_111 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_111, 0, x_110);
lean_ctor_set(x_111, 1, x_38);
x_112 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_112, 0, x_109);
lean_ctor_set(x_112, 1, x_111);
lean_inc(x_18);
x_113 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_113, 0, x_18);
lean_ctor_set(x_113, 1, x_105);
lean_ctor_set(x_113, 2, x_107);
lean_ctor_set(x_113, 3, x_112);
lean_inc(x_18);
x_114 = l_Lean_Syntax_node2(x_18, x_61, x_24, x_113);
lean_inc(x_22);
lean_inc(x_18);
x_115 = l_Lean_Syntax_node1(x_18, x_22, x_114);
lean_inc(x_40);
lean_inc(x_18);
x_116 = l_Lean_Syntax_node2(x_18, x_59, x_40, x_115);
x_117 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__10;
x_118 = l_Lean_Name_mkStr4(x_26, x_35, x_29, x_117);
x_119 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__11;
lean_inc(x_18);
x_120 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_120, 0, x_18);
lean_ctor_set(x_120, 1, x_119);
x_121 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__13;
x_122 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__14;
x_123 = l_Lean_addMacroScope(x_30, x_122, x_25);
lean_inc(x_18);
x_124 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_124, 0, x_18);
lean_ctor_set(x_124, 1, x_121);
lean_ctor_set(x_124, 2, x_123);
lean_ctor_set(x_124, 3, x_38);
lean_inc(x_18);
x_125 = l_Lean_Syntax_node3(x_18, x_118, x_20, x_120, x_124);
lean_inc(x_40);
lean_inc(x_18);
x_126 = l_Lean_Syntax_node4(x_18, x_66, x_23, x_125, x_79, x_40);
lean_inc(x_18);
x_127 = l_Lean_Syntax_node5(x_18, x_96, x_98, x_103, x_116, x_126, x_40);
lean_inc(x_18);
x_128 = l_Lean_Syntax_node2(x_18, x_27, x_94, x_127);
x_129 = l_Lean_Syntax_node3(x_18, x_22, x_32, x_82, x_128);
x_130 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_130, 0, x_129);
return x_130;
}
block_229:
{
lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; 
x_149 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_150 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__27;
lean_inc_ref(x_146);
lean_inc(x_140);
lean_inc(x_137);
x_151 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_151, 0, x_137);
lean_ctor_set(x_151, 1, x_140);
lean_ctor_set(x_151, 2, x_146);
x_152 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__28;
lean_inc(x_137);
x_153 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_153, 0, x_137);
lean_ctor_set(x_153, 1, x_152);
x_154 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__39;
lean_inc(x_137);
x_155 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_155, 0, x_137);
lean_ctor_set(x_155, 1, x_154);
x_156 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__30;
x_157 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__31;
lean_inc(x_142);
lean_inc(x_147);
x_158 = l_Lean_addMacroScope(x_147, x_157, x_142);
x_159 = lean_box(0);
x_160 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__3;
lean_inc(x_144);
x_161 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_161, 0, x_160);
lean_ctor_set(x_161, 1, x_144);
lean_inc(x_137);
x_162 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_162, 0, x_137);
lean_ctor_set(x_162, 1, x_156);
lean_ctor_set(x_162, 2, x_158);
lean_ctor_set(x_162, 3, x_161);
x_163 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__35;
lean_inc_ref(x_133);
lean_inc_ref(x_141);
lean_inc_ref(x_145);
x_164 = l_Lean_Name_mkStr4(x_145, x_141, x_133, x_163);
x_165 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__22;
lean_inc_ref(x_133);
lean_inc_ref(x_141);
lean_inc_ref(x_145);
x_166 = l_Lean_Name_mkStr4(x_145, x_141, x_133, x_165);
x_167 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__23;
lean_inc(x_137);
x_168 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_168, 0, x_137);
lean_ctor_set(x_168, 1, x_167);
x_169 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__25;
x_170 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__27;
x_171 = lean_box(0);
lean_inc(x_142);
lean_inc(x_147);
x_172 = l_Lean_addMacroScope(x_147, x_171, x_142);
x_173 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_174 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__29;
x_175 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__59;
lean_inc_ref(x_141);
lean_inc_ref(x_145);
x_176 = l_Lean_Name_mkStr3(x_145, x_141, x_175);
x_177 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_177, 0, x_176);
x_178 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__30;
lean_inc_ref(x_145);
x_179 = l_Lean_Name_mkStr3(x_145, x_178, x_175);
x_180 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_180, 0, x_179);
lean_inc_ref(x_145);
x_181 = l_Lean_Name_mkStr2(x_145, x_178);
x_182 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_182, 0, x_181);
lean_inc_ref(x_141);
lean_inc_ref(x_145);
x_183 = l_Lean_Name_mkStr2(x_145, x_141);
x_184 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_184, 0, x_183);
lean_inc_ref(x_145);
x_185 = l_Lean_Name_mkStr1(x_145);
x_186 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_186, 0, x_185);
lean_inc(x_144);
x_187 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_187, 0, x_186);
lean_ctor_set(x_187, 1, x_144);
x_188 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_188, 0, x_184);
lean_ctor_set(x_188, 1, x_187);
x_189 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_189, 0, x_182);
lean_ctor_set(x_189, 1, x_188);
x_190 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_190, 0, x_180);
lean_ctor_set(x_190, 1, x_189);
x_191 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_191, 0, x_177);
lean_ctor_set(x_191, 1, x_190);
x_192 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_192, 0, x_174);
lean_ctor_set(x_192, 1, x_191);
lean_inc(x_137);
x_193 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_193, 0, x_137);
lean_ctor_set(x_193, 1, x_170);
lean_ctor_set(x_193, 2, x_172);
lean_ctor_set(x_193, 3, x_192);
lean_inc(x_137);
x_194 = l_Lean_Syntax_node1(x_137, x_169, x_193);
lean_inc(x_137);
x_195 = l_Lean_Syntax_node2(x_137, x_166, x_168, x_194);
x_196 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__37;
x_197 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__38;
lean_inc(x_137);
x_198 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_198, 0, x_137);
lean_ctor_set(x_198, 1, x_197);
lean_inc(x_137);
x_199 = l_Lean_Syntax_node1(x_137, x_196, x_198);
x_200 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__7;
lean_inc(x_137);
x_201 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_201, 0, x_137);
lean_ctor_set(x_201, 1, x_200);
lean_inc(x_135);
lean_inc(x_140);
lean_inc(x_137);
x_202 = l_Lean_Syntax_node1(x_137, x_140, x_135);
lean_inc(x_199);
lean_inc(x_140);
lean_inc(x_137);
x_203 = l_Lean_Syntax_node3(x_137, x_140, x_199, x_201, x_202);
x_204 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__34;
lean_inc(x_137);
x_205 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_205, 0, x_137);
lean_ctor_set(x_205, 1, x_204);
lean_inc(x_137);
x_206 = l_Lean_Syntax_node3(x_137, x_164, x_195, x_203, x_205);
x_207 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__14;
lean_inc(x_137);
x_208 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_208, 0, x_137);
lean_ctor_set(x_208, 1, x_207);
x_209 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__15;
lean_inc_ref(x_133);
lean_inc_ref(x_141);
lean_inc_ref(x_145);
x_210 = l_Lean_Name_mkStr4(x_145, x_141, x_133, x_209);
x_211 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__5;
x_212 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__6;
lean_inc(x_142);
lean_inc(x_147);
x_213 = l_Lean_addMacroScope(x_147, x_212, x_142);
x_214 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__8;
x_215 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__9;
lean_inc(x_144);
x_216 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_216, 0, x_215);
lean_ctor_set(x_216, 1, x_144);
x_217 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_217, 0, x_214);
lean_ctor_set(x_217, 1, x_216);
lean_inc(x_137);
x_218 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_218, 0, x_137);
lean_ctor_set(x_218, 1, x_211);
lean_ctor_set(x_218, 2, x_213);
lean_ctor_set(x_218, 3, x_217);
lean_inc(x_138);
lean_inc(x_140);
lean_inc(x_137);
x_219 = l_Lean_Syntax_node1(x_137, x_140, x_138);
lean_inc(x_210);
lean_inc(x_137);
x_220 = l_Lean_Syntax_node2(x_137, x_210, x_218, x_219);
lean_inc_ref(x_208);
lean_inc_ref(x_155);
lean_inc(x_139);
lean_inc_ref(x_151);
lean_inc(x_137);
x_221 = l_Lean_Syntax_node8(x_137, x_150, x_151, x_153, x_139, x_155, x_162, x_206, x_208, x_220);
x_222 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__40;
lean_inc_ref(x_141);
lean_inc_ref(x_145);
x_223 = l_Lean_Name_mkStr4(x_145, x_141, x_175, x_222);
x_224 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__41;
lean_inc_ref(x_141);
lean_inc_ref(x_145);
x_225 = l_Lean_Name_mkStr4(x_145, x_141, x_175, x_224);
if (lean_obj_tag(x_5) == 1)
{
lean_object* x_226; lean_object* x_227; 
x_226 = lean_ctor_get(x_5, 0);
lean_inc(x_226);
lean_dec_ref(x_5);
x_227 = l_Array_mkArray1___redArg(x_226);
x_12 = x_132;
x_13 = x_134;
x_14 = x_149;
x_15 = x_135;
x_16 = lean_box(0);
x_17 = x_136;
x_18 = x_137;
x_19 = x_199;
x_20 = x_139;
x_21 = x_175;
x_22 = x_140;
x_23 = x_208;
x_24 = x_155;
x_25 = x_142;
x_26 = x_145;
x_27 = x_223;
x_28 = x_173;
x_29 = x_133;
x_30 = x_147;
x_31 = x_159;
x_32 = x_221;
x_33 = x_225;
x_34 = x_138;
x_35 = x_141;
x_36 = x_210;
x_37 = x_143;
x_38 = x_144;
x_39 = x_200;
x_40 = x_151;
x_41 = x_146;
x_42 = x_227;
goto block_131;
}
else
{
lean_object* x_228; 
lean_dec(x_5);
x_228 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__35;
x_12 = x_132;
x_13 = x_134;
x_14 = x_149;
x_15 = x_135;
x_16 = lean_box(0);
x_17 = x_136;
x_18 = x_137;
x_19 = x_199;
x_20 = x_139;
x_21 = x_175;
x_22 = x_140;
x_23 = x_208;
x_24 = x_155;
x_25 = x_142;
x_26 = x_145;
x_27 = x_223;
x_28 = x_173;
x_29 = x_133;
x_30 = x_147;
x_31 = x_159;
x_32 = x_221;
x_33 = x_225;
x_34 = x_138;
x_35 = x_141;
x_36 = x_210;
x_37 = x_143;
x_38 = x_144;
x_39 = x_200;
x_40 = x_151;
x_41 = x_146;
x_42 = x_228;
goto block_131;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; uint8_t x_6; 
x_5 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__1;
lean_inc(x_1);
x_6 = l_Lean_Syntax_isOfKind(x_1, x_5);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; 
x_7 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__3;
x_8 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_1, x_7, x_2, x_3);
lean_dec(x_3);
lean_dec(x_1);
return x_8;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_63; lean_object* x_64; lean_object* x_71; lean_object* x_78; 
x_9 = lean_unsigned_to_nat(0u);
x_10 = l_Lean_Syntax_getArg(x_1, x_9);
x_11 = lean_unsigned_to_nat(1u);
x_12 = l_Lean_Syntax_getArg(x_1, x_11);
x_13 = lean_unsigned_to_nat(2u);
x_14 = l_Lean_Syntax_getArg(x_1, x_13);
x_15 = lean_unsigned_to_nat(3u);
x_16 = l_Lean_Syntax_getArg(x_1, x_15);
x_17 = lean_unsigned_to_nat(4u);
x_18 = l_Lean_Syntax_getArg(x_1, x_17);
x_78 = l_Lean_Syntax_getOptional_x3f(x_16);
lean_dec(x_16);
if (lean_obj_tag(x_78) == 0)
{
lean_object* x_79; 
x_79 = lean_box(0);
x_71 = x_79;
goto block_77;
}
else
{
uint8_t x_80; 
x_80 = !lean_is_exclusive(x_78);
if (x_80 == 0)
{
x_71 = x_78;
goto block_77;
}
else
{
lean_object* x_81; lean_object* x_82; 
x_81 = lean_ctor_get(x_78, 0);
lean_inc(x_81);
lean_dec(x_78);
x_82 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_82, 0, x_81);
x_71 = x_82;
goto block_77;
}
}
block_62:
{
lean_object* x_22; 
x_22 = l_Lean_Elab_Command_getRef___redArg(x_2);
if (lean_obj_tag(x_22) == 0)
{
lean_object* x_23; uint8_t x_24; 
x_23 = lean_ctor_get(x_22, 0);
lean_inc(x_23);
lean_dec_ref(x_22);
x_24 = !lean_is_exclusive(x_2);
if (x_24 == 0)
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
x_25 = lean_ctor_get(x_2, 7);
lean_dec(x_25);
x_26 = l_Lake_instTypeNameInputFileDecl_unsafe__1;
x_27 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__5;
x_28 = l_Lake_InputFile_keyword;
x_29 = l_Lean_replaceRef(x_14, x_23);
lean_dec(x_23);
lean_dec(x_14);
lean_ctor_set(x_2, 7, x_29);
lean_inc(x_3);
lean_inc_ref(x_2);
x_30 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand_spec__0(x_27, x_28, x_28, x_26, x_21, x_20, x_19, x_18, x_2, x_3);
if (lean_obj_tag(x_30) == 0)
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_31 = lean_ctor_get(x_30, 0);
lean_inc(x_31);
lean_dec_ref(x_30);
lean_inc(x_31);
x_32 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCommand___boxed), 4, 1);
lean_closure_set(x_32, 0, x_31);
x_33 = l_Lean_Elab_Command_withMacroExpansion___redArg(x_1, x_31, x_32, x_2, x_3);
return x_33;
}
else
{
uint8_t x_34; 
lean_dec_ref(x_2);
lean_dec(x_3);
lean_dec(x_1);
x_34 = !lean_is_exclusive(x_30);
if (x_34 == 0)
{
return x_30;
}
else
{
lean_object* x_35; lean_object* x_36; 
x_35 = lean_ctor_get(x_30, 0);
lean_inc(x_35);
lean_dec(x_30);
x_36 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_36, 0, x_35);
return x_36;
}
}
}
else
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; 
x_37 = lean_ctor_get(x_2, 0);
x_38 = lean_ctor_get(x_2, 1);
x_39 = lean_ctor_get(x_2, 2);
x_40 = lean_ctor_get(x_2, 3);
x_41 = lean_ctor_get(x_2, 4);
x_42 = lean_ctor_get(x_2, 5);
x_43 = lean_ctor_get(x_2, 6);
x_44 = lean_ctor_get(x_2, 8);
x_45 = lean_ctor_get(x_2, 9);
x_46 = lean_ctor_get_uint8(x_2, sizeof(void*)*10);
lean_inc(x_45);
lean_inc(x_44);
lean_inc(x_43);
lean_inc(x_42);
lean_inc(x_41);
lean_inc(x_40);
lean_inc(x_39);
lean_inc(x_38);
lean_inc(x_37);
lean_dec(x_2);
x_47 = l_Lake_instTypeNameInputFileDecl_unsafe__1;
x_48 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__5;
x_49 = l_Lake_InputFile_keyword;
x_50 = l_Lean_replaceRef(x_14, x_23);
lean_dec(x_23);
lean_dec(x_14);
x_51 = lean_alloc_ctor(0, 10, 1);
lean_ctor_set(x_51, 0, x_37);
lean_ctor_set(x_51, 1, x_38);
lean_ctor_set(x_51, 2, x_39);
lean_ctor_set(x_51, 3, x_40);
lean_ctor_set(x_51, 4, x_41);
lean_ctor_set(x_51, 5, x_42);
lean_ctor_set(x_51, 6, x_43);
lean_ctor_set(x_51, 7, x_50);
lean_ctor_set(x_51, 8, x_44);
lean_ctor_set(x_51, 9, x_45);
lean_ctor_set_uint8(x_51, sizeof(void*)*10, x_46);
lean_inc(x_3);
lean_inc_ref(x_51);
x_52 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand_spec__0(x_48, x_49, x_49, x_47, x_21, x_20, x_19, x_18, x_51, x_3);
if (lean_obj_tag(x_52) == 0)
{
lean_object* x_53; lean_object* x_54; lean_object* x_55; 
x_53 = lean_ctor_get(x_52, 0);
lean_inc(x_53);
lean_dec_ref(x_52);
lean_inc(x_53);
x_54 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCommand___boxed), 4, 1);
lean_closure_set(x_54, 0, x_53);
x_55 = l_Lean_Elab_Command_withMacroExpansion___redArg(x_1, x_53, x_54, x_51, x_3);
return x_55;
}
else
{
lean_object* x_56; lean_object* x_57; lean_object* x_58; 
lean_dec_ref(x_51);
lean_dec(x_3);
lean_dec(x_1);
x_56 = lean_ctor_get(x_52, 0);
lean_inc(x_56);
if (lean_is_exclusive(x_52)) {
 lean_ctor_release(x_52, 0);
 x_57 = x_52;
} else {
 lean_dec_ref(x_52);
 x_57 = lean_box(0);
}
if (lean_is_scalar(x_57)) {
 x_58 = lean_alloc_ctor(1, 1, 0);
} else {
 x_58 = x_57;
}
lean_ctor_set(x_58, 0, x_56);
return x_58;
}
}
}
else
{
uint8_t x_59; 
lean_dec(x_21);
lean_dec(x_20);
lean_dec(x_19);
lean_dec(x_18);
lean_dec(x_14);
lean_dec(x_3);
lean_dec_ref(x_2);
lean_dec(x_1);
x_59 = !lean_is_exclusive(x_22);
if (x_59 == 0)
{
return x_22;
}
else
{
lean_object* x_60; lean_object* x_61; 
x_60 = lean_ctor_get(x_22, 0);
lean_inc(x_60);
lean_dec(x_22);
x_61 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_61, 0, x_60);
return x_61;
}
}
}
block_70:
{
lean_object* x_65; 
x_65 = l_Lean_Syntax_getOptional_x3f(x_10);
lean_dec(x_10);
if (lean_obj_tag(x_65) == 0)
{
lean_object* x_66; 
x_66 = lean_box(0);
x_19 = x_63;
x_20 = x_64;
x_21 = x_66;
goto block_62;
}
else
{
uint8_t x_67; 
x_67 = !lean_is_exclusive(x_65);
if (x_67 == 0)
{
x_19 = x_63;
x_20 = x_64;
x_21 = x_65;
goto block_62;
}
else
{
lean_object* x_68; lean_object* x_69; 
x_68 = lean_ctor_get(x_65, 0);
lean_inc(x_68);
lean_dec(x_65);
x_69 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_69, 0, x_68);
x_19 = x_63;
x_20 = x_64;
x_21 = x_69;
goto block_62;
}
}
}
block_77:
{
lean_object* x_72; 
x_72 = l_Lean_Syntax_getOptional_x3f(x_12);
lean_dec(x_12);
if (lean_obj_tag(x_72) == 0)
{
lean_object* x_73; 
x_73 = lean_box(0);
x_63 = x_71;
x_64 = x_73;
goto block_70;
}
else
{
uint8_t x_74; 
x_74 = !lean_is_exclusive(x_72);
if (x_74 == 0)
{
x_63 = x_71;
x_64 = x_72;
goto block_70;
}
else
{
lean_object* x_75; lean_object* x_76; 
x_75 = lean_ctor_get(x_72, 0);
lean_inc(x_75);
lean_dec(x_72);
x_76 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_76, 0, x_75);
x_63 = x_71;
x_64 = x_76;
goto block_70;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand(x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6);
return x_8;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; 
x_12 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
return x_12;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand__1___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabInputfileCommand", 20, 20);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand__1___closed__0;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__9;
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand__1() {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1___closed__0;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__1;
x_4 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand__1___closed__1;
x_5 = lean_alloc_closure((void*)(l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___boxed), 4, 0);
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___redArg(x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand__1___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand__1();
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("inputDirCommand", 15, 15);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__0;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ill-formed input_dir declaration", 32, 32);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__2;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("InputDirConfig", 14, 14);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__4;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_107; uint8_t x_108; 
x_83 = l_Lake_InputDirConfig_instConfigInfo;
x_107 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__5;
lean_inc(x_4);
x_108 = l_Lean_Syntax_isOfKind(x_4, x_107);
if (x_108 == 0)
{
lean_object* x_109; lean_object* x_110; 
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_109 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_110 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_109, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_110;
}
else
{
lean_object* x_111; lean_object* x_112; uint8_t x_113; 
x_111 = lean_unsigned_to_nat(0u);
x_112 = l_Lean_Syntax_getArg(x_4, x_111);
lean_inc(x_112);
x_113 = l_Lean_Syntax_matchesNull(x_112, x_111);
if (x_113 == 0)
{
lean_object* x_114; uint8_t x_115; 
x_114 = lean_unsigned_to_nat(1u);
lean_inc(x_112);
x_115 = l_Lean_Syntax_matchesNull(x_112, x_114);
if (x_115 == 0)
{
lean_object* x_116; lean_object* x_117; 
lean_dec(x_112);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_116 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_117 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_116, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_117;
}
else
{
lean_object* x_118; lean_object* x_119; uint8_t x_120; 
x_118 = l_Lean_Syntax_getArg(x_112, x_111);
lean_dec(x_112);
x_119 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__9;
lean_inc(x_118);
x_120 = l_Lean_Syntax_isOfKind(x_118, x_119);
if (x_120 == 0)
{
lean_object* x_121; uint8_t x_122; 
x_121 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__11;
lean_inc(x_118);
x_122 = l_Lean_Syntax_isOfKind(x_118, x_121);
if (x_122 == 0)
{
lean_object* x_123; lean_object* x_124; 
lean_dec(x_118);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_123 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_124 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_123, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_124;
}
else
{
lean_object* x_125; lean_object* x_126; uint8_t x_127; 
x_125 = l_Lean_Syntax_getArg(x_118, x_111);
x_126 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__13;
lean_inc(x_125);
x_127 = l_Lean_Syntax_isOfKind(x_125, x_126);
if (x_127 == 0)
{
lean_object* x_128; lean_object* x_129; 
lean_dec(x_125);
lean_dec(x_118);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_128 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_129 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_128, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_129;
}
else
{
lean_object* x_130; lean_object* x_131; uint8_t x_132; 
x_130 = l_Lean_Syntax_getArg(x_125, x_114);
x_131 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__15;
lean_inc(x_130);
x_132 = l_Lean_Syntax_isOfKind(x_130, x_131);
if (x_132 == 0)
{
lean_object* x_133; lean_object* x_134; 
lean_dec(x_130);
lean_dec(x_125);
lean_dec(x_118);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_133 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_134 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_133, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_134;
}
else
{
lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_145; uint8_t x_146; 
x_135 = l_Lean_Syntax_getArg(x_125, x_111);
lean_dec(x_125);
x_136 = l_Lean_Syntax_getArg(x_130, x_111);
lean_dec(x_130);
x_145 = l_Lean_Syntax_getArg(x_118, x_114);
lean_dec(x_118);
x_146 = l_Lean_Syntax_isNone(x_145);
if (x_146 == 0)
{
uint8_t x_147; 
lean_inc(x_145);
x_147 = l_Lean_Syntax_matchesNull(x_145, x_114);
if (x_147 == 0)
{
lean_object* x_148; lean_object* x_149; 
lean_dec(x_145);
lean_dec(x_136);
lean_dec(x_135);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_148 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_149 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_148, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_149;
}
else
{
lean_object* x_150; lean_object* x_151; uint8_t x_152; 
x_150 = l_Lean_Syntax_getArg(x_145, x_111);
lean_dec(x_145);
x_151 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__66;
lean_inc(x_150);
x_152 = l_Lean_Syntax_isOfKind(x_150, x_151);
if (x_152 == 0)
{
lean_object* x_153; lean_object* x_154; 
lean_dec(x_150);
lean_dec(x_136);
lean_dec(x_135);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_153 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_154 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_153, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_154;
}
else
{
lean_object* x_155; 
x_155 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_155, 0, x_150);
x_137 = x_155;
x_138 = x_5;
x_139 = x_6;
x_140 = lean_box(0);
goto block_144;
}
}
}
else
{
lean_object* x_156; 
lean_dec(x_145);
x_156 = lean_box(0);
x_137 = x_156;
x_138 = x_5;
x_139 = x_6;
x_140 = lean_box(0);
goto block_144;
}
block_144:
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; 
x_141 = l_Lean_Syntax_getArgs(x_136);
lean_dec(x_136);
x_142 = l_Lean_Syntax_getHeadInfo(x_135);
lean_dec(x_135);
x_143 = l_Lean_Syntax_TSepArray_getElems___redArg(x_141);
lean_dec_ref(x_141);
x_84 = x_142;
x_85 = x_143;
x_86 = x_137;
x_87 = x_138;
x_88 = x_139;
x_89 = lean_box(0);
goto block_106;
}
}
}
}
}
else
{
lean_object* x_157; lean_object* x_158; uint8_t x_159; 
x_157 = l_Lean_Syntax_getArg(x_118, x_114);
x_158 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__15;
lean_inc(x_157);
x_159 = l_Lean_Syntax_isOfKind(x_157, x_158);
if (x_159 == 0)
{
lean_object* x_160; lean_object* x_161; 
lean_dec(x_157);
lean_dec(x_118);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_160 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_161 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_160, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_161;
}
else
{
lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_172; lean_object* x_173; uint8_t x_174; 
x_162 = l_Lean_Syntax_getArg(x_118, x_111);
x_163 = l_Lean_Syntax_getArg(x_157, x_111);
lean_dec(x_157);
x_172 = lean_unsigned_to_nat(2u);
x_173 = l_Lean_Syntax_getArg(x_118, x_172);
lean_dec(x_118);
x_174 = l_Lean_Syntax_isNone(x_173);
if (x_174 == 0)
{
uint8_t x_175; 
lean_inc(x_173);
x_175 = l_Lean_Syntax_matchesNull(x_173, x_114);
if (x_175 == 0)
{
lean_object* x_176; lean_object* x_177; 
lean_dec(x_173);
lean_dec(x_163);
lean_dec(x_162);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_176 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_177 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_176, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_177;
}
else
{
lean_object* x_178; lean_object* x_179; uint8_t x_180; 
x_178 = l_Lean_Syntax_getArg(x_173, x_111);
lean_dec(x_173);
x_179 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__66;
lean_inc(x_178);
x_180 = l_Lean_Syntax_isOfKind(x_178, x_179);
if (x_180 == 0)
{
lean_object* x_181; lean_object* x_182; 
lean_dec(x_178);
lean_dec(x_163);
lean_dec(x_162);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_181 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7;
x_182 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_4, x_181, x_5, x_6);
lean_dec(x_6);
lean_dec(x_4);
return x_182;
}
else
{
lean_object* x_183; 
x_183 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_183, 0, x_178);
x_164 = x_183;
x_165 = x_5;
x_166 = x_6;
x_167 = lean_box(0);
goto block_171;
}
}
}
else
{
lean_object* x_184; 
lean_dec(x_173);
x_184 = lean_box(0);
x_164 = x_184;
x_165 = x_5;
x_166 = x_6;
x_167 = lean_box(0);
goto block_171;
}
block_171:
{
lean_object* x_168; lean_object* x_169; lean_object* x_170; 
x_168 = l_Lean_Syntax_getArgs(x_163);
lean_dec(x_163);
x_169 = l_Lean_Syntax_getHeadInfo(x_162);
lean_dec(x_162);
x_170 = l_Lean_Syntax_TSepArray_getElems___redArg(x_168);
lean_dec_ref(x_168);
x_84 = x_169;
x_85 = x_170;
x_86 = x_164;
x_87 = x_165;
x_88 = x_166;
x_89 = lean_box(0);
goto block_106;
}
}
}
}
}
else
{
lean_object* x_185; lean_object* x_186; lean_object* x_187; 
lean_dec(x_112);
x_185 = lean_box(2);
x_186 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__11;
x_187 = lean_box(0);
x_84 = x_185;
x_85 = x_186;
x_86 = x_187;
x_87 = x_5;
x_88 = x_6;
x_89 = lean_box(0);
goto block_106;
}
}
block_51:
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; 
x_17 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__40;
lean_inc_ref(x_15);
lean_inc_ref(x_8);
lean_inc_ref(x_14);
x_18 = l_Lean_Name_mkStr4(x_14, x_8, x_15, x_17);
x_19 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__41;
lean_inc_ref(x_15);
lean_inc_ref(x_8);
lean_inc_ref(x_14);
x_20 = l_Lean_Name_mkStr4(x_14, x_8, x_15, x_19);
x_21 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__45;
x_22 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__46;
lean_inc(x_12);
x_23 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_23, 0, x_12);
lean_ctor_set(x_23, 1, x_21);
lean_ctor_set(x_23, 2, x_22);
lean_inc_ref_n(x_23, 7);
lean_inc(x_12);
x_24 = l_Lean_Syntax_node7(x_12, x_20, x_23, x_23, x_23, x_23, x_23, x_23, x_23);
x_25 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__0;
lean_inc_ref(x_15);
lean_inc_ref(x_8);
lean_inc_ref(x_14);
x_26 = l_Lean_Name_mkStr4(x_14, x_8, x_15, x_25);
x_27 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__1;
lean_inc(x_12);
x_28 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_28, 0, x_12);
lean_ctor_set(x_28, 1, x_27);
x_29 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__10;
lean_inc_ref(x_15);
lean_inc_ref(x_8);
lean_inc_ref(x_14);
x_30 = l_Lean_Name_mkStr4(x_14, x_8, x_15, x_29);
x_31 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__11;
lean_inc(x_11);
x_32 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_32, 0, x_11);
lean_ctor_set(x_32, 1, x_21);
lean_ctor_set(x_32, 2, x_31);
x_33 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__12;
x_34 = lean_array_push(x_33, x_2);
x_35 = lean_array_push(x_34, x_32);
x_36 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_36, 0, x_11);
lean_ctor_set(x_36, 1, x_30);
lean_ctor_set(x_36, 2, x_35);
x_37 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__13;
lean_inc_ref(x_8);
lean_inc_ref(x_14);
x_38 = l_Lean_Name_mkStr4(x_14, x_8, x_15, x_37);
x_39 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56;
x_40 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__57;
x_41 = l_Lean_Name_mkStr4(x_14, x_8, x_39, x_40);
x_42 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__39;
lean_inc(x_12);
x_43 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_43, 0, x_12);
lean_ctor_set(x_43, 1, x_42);
lean_inc(x_12);
x_44 = l_Lean_Syntax_node2(x_12, x_41, x_43, x_3);
lean_inc(x_12);
x_45 = l_Lean_Syntax_node1(x_12, x_21, x_44);
lean_inc_ref(x_23);
lean_inc(x_12);
x_46 = l_Lean_Syntax_node2(x_12, x_38, x_23, x_45);
lean_inc(x_12);
x_47 = l_Lean_Syntax_node5(x_12, x_26, x_28, x_36, x_46, x_9, x_23);
x_48 = l_Lean_Syntax_node2(x_12, x_18, x_24, x_47);
lean_inc(x_48);
x_49 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCommand___boxed), 4, 1);
lean_closure_set(x_49, 0, x_48);
x_50 = l_Lean_Elab_Command_withMacroExpansion___redArg(x_4, x_48, x_49, x_10, x_13);
return x_50;
}
block_82:
{
lean_object* x_62; 
x_62 = l_Lean_Elab_Command_getRef___redArg(x_56);
if (lean_obj_tag(x_62) == 0)
{
lean_object* x_63; lean_object* x_64; 
x_63 = lean_ctor_get(x_62, 0);
lean_inc(x_63);
lean_dec_ref(x_62);
x_64 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_56);
if (lean_obj_tag(x_64) == 0)
{
lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; lean_object* x_74; 
lean_dec_ref(x_64);
x_65 = lean_ctor_get(x_56, 5);
x_66 = l_Lean_mkOptionalNode(x_61);
x_67 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__0;
x_68 = lean_array_push(x_67, x_54);
x_69 = lean_array_push(x_68, x_55);
x_70 = lean_array_push(x_69, x_66);
x_71 = lean_box(2);
x_72 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_72, 0, x_71);
lean_ctor_set(x_72, 1, x_52);
lean_ctor_set(x_72, 2, x_70);
x_73 = 0;
x_74 = l_Lean_SourceInfo_fromRef(x_63, x_73);
lean_dec(x_63);
if (lean_obj_tag(x_65) == 0)
{
lean_object* x_75; 
x_75 = l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___redArg(x_57);
lean_dec_ref(x_75);
x_8 = x_53;
x_9 = x_72;
x_10 = x_56;
x_11 = x_71;
x_12 = x_74;
x_13 = x_57;
x_14 = x_58;
x_15 = x_60;
x_16 = lean_box(0);
goto block_51;
}
else
{
x_8 = x_53;
x_9 = x_72;
x_10 = x_56;
x_11 = x_71;
x_12 = x_74;
x_13 = x_57;
x_14 = x_58;
x_15 = x_60;
x_16 = lean_box(0);
goto block_51;
}
}
else
{
uint8_t x_76; 
lean_dec(x_63);
lean_dec(x_61);
lean_dec_ref(x_60);
lean_dec_ref(x_58);
lean_dec(x_57);
lean_dec_ref(x_56);
lean_dec(x_55);
lean_dec(x_54);
lean_dec_ref(x_53);
lean_dec(x_52);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_76 = !lean_is_exclusive(x_64);
if (x_76 == 0)
{
return x_64;
}
else
{
lean_object* x_77; lean_object* x_78; 
x_77 = lean_ctor_get(x_64, 0);
lean_inc(x_77);
lean_dec(x_64);
x_78 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_78, 0, x_77);
return x_78;
}
}
}
else
{
uint8_t x_79; 
lean_dec(x_61);
lean_dec_ref(x_60);
lean_dec_ref(x_58);
lean_dec(x_57);
lean_dec_ref(x_56);
lean_dec(x_55);
lean_dec(x_54);
lean_dec_ref(x_53);
lean_dec(x_52);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_79 = !lean_is_exclusive(x_62);
if (x_79 == 0)
{
return x_62;
}
else
{
lean_object* x_80; lean_object* x_81; 
x_80 = lean_ctor_get(x_62, 0);
lean_inc(x_80);
lean_dec(x_62);
x_81 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_81, 0, x_80);
return x_81;
}
}
}
block_106:
{
lean_object* x_90; lean_object* x_91; 
x_90 = lean_ctor_get(x_83, 1);
lean_inc(x_90);
lean_inc_ref(x_87);
x_91 = l___private_Lake_DSL_DeclUtil_0__Lake_DSL_mkConfigFields(x_1, x_90, x_85, x_87, x_88);
lean_dec_ref(x_85);
lean_dec(x_90);
if (lean_obj_tag(x_91) == 0)
{
lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; 
x_92 = lean_ctor_get(x_91, 0);
lean_inc(x_92);
lean_dec_ref(x_91);
x_93 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__1;
x_94 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_94, 0, x_84);
lean_ctor_set(x_94, 1, x_93);
x_95 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54;
x_96 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55;
x_97 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__59;
x_98 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__3;
if (lean_obj_tag(x_86) == 0)
{
lean_object* x_99; 
x_99 = lean_box(0);
x_52 = x_98;
x_53 = x_96;
x_54 = x_94;
x_55 = x_92;
x_56 = x_87;
x_57 = x_88;
x_58 = x_95;
x_59 = lean_box(0);
x_60 = x_97;
x_61 = x_99;
goto block_82;
}
else
{
uint8_t x_100; 
x_100 = !lean_is_exclusive(x_86);
if (x_100 == 0)
{
x_52 = x_98;
x_53 = x_96;
x_54 = x_94;
x_55 = x_92;
x_56 = x_87;
x_57 = x_88;
x_58 = x_95;
x_59 = lean_box(0);
x_60 = x_97;
x_61 = x_86;
goto block_82;
}
else
{
lean_object* x_101; lean_object* x_102; 
x_101 = lean_ctor_get(x_86, 0);
lean_inc(x_101);
lean_dec(x_86);
x_102 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_102, 0, x_101);
x_52 = x_98;
x_53 = x_96;
x_54 = x_94;
x_55 = x_92;
x_56 = x_87;
x_57 = x_88;
x_58 = x_95;
x_59 = lean_box(0);
x_60 = x_97;
x_61 = x_102;
goto block_82;
}
}
}
else
{
uint8_t x_103; 
lean_dec(x_88);
lean_dec_ref(x_87);
lean_dec(x_86);
lean_dec(x_84);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_103 = !lean_is_exclusive(x_91);
if (x_103 == 0)
{
return x_91;
}
else
{
lean_object* x_104; lean_object* x_105; 
x_104 = lean_ctor_get(x_91, 0);
lean_inc(x_104);
lean_dec(x_91);
x_105 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_105, 0, x_104);
return x_105;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_230; 
x_230 = l_Lean_Elab_Command_getRef___redArg(x_9);
if (lean_obj_tag(x_230) == 0)
{
lean_object* x_231; lean_object* x_232; 
x_231 = lean_ctor_get(x_230, 0);
lean_inc(x_231);
lean_dec_ref(x_230);
x_232 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_9);
if (lean_obj_tag(x_232) == 0)
{
lean_object* x_233; lean_object* x_234; uint8_t x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_320; lean_object* x_321; lean_object* x_322; 
x_233 = lean_ctor_get(x_232, 0);
lean_inc(x_233);
lean_dec_ref(x_232);
x_234 = lean_ctor_get(x_9, 5);
lean_inc(x_234);
x_235 = 0;
x_320 = l_Lean_SourceInfo_fromRef(x_231, x_235);
lean_dec(x_231);
if (lean_obj_tag(x_234) == 0)
{
lean_object* x_356; lean_object* x_357; 
x_356 = l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___redArg(x_10);
x_357 = lean_ctor_get(x_356, 0);
lean_inc(x_357);
lean_dec_ref(x_356);
x_321 = x_357;
x_322 = lean_box(0);
goto block_355;
}
else
{
lean_object* x_358; 
x_358 = lean_ctor_get(x_234, 0);
lean_inc(x_358);
x_321 = x_358;
x_322 = lean_box(0);
goto block_355;
}
block_283:
{
lean_object* x_252; 
x_252 = l_Lean_mkIdentFromRef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__8___redArg(x_4, x_235, x_9);
if (lean_obj_tag(x_252) == 0)
{
lean_object* x_253; lean_object* x_254; 
x_253 = lean_ctor_get(x_252, 0);
lean_inc(x_253);
lean_dec_ref(x_252);
x_254 = l_Lean_Elab_Command_getRef___redArg(x_9);
if (lean_obj_tag(x_254) == 0)
{
lean_object* x_255; lean_object* x_256; 
x_255 = lean_ctor_get(x_254, 0);
lean_inc(x_255);
lean_dec_ref(x_254);
x_256 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___lam__0(x_9, x_10);
if (lean_obj_tag(x_256) == 0)
{
lean_object* x_257; lean_object* x_258; 
x_257 = lean_ctor_get(x_256, 0);
lean_inc(x_257);
lean_dec_ref(x_256);
x_258 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_9);
lean_dec_ref(x_9);
if (lean_obj_tag(x_258) == 0)
{
lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; 
x_259 = lean_ctor_get(x_258, 0);
lean_inc(x_259);
lean_dec_ref(x_258);
lean_inc_ref(x_250);
lean_inc(x_237);
lean_inc(x_238);
x_260 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_260, 0, x_238);
lean_ctor_set(x_260, 1, x_237);
lean_ctor_set(x_260, 2, x_250);
lean_inc_ref(x_260);
lean_inc(x_238);
x_261 = l_Lean_Syntax_node1(x_238, x_236, x_260);
lean_inc(x_238);
x_262 = l_Lean_Syntax_node2(x_238, x_242, x_244, x_260);
x_263 = l_Lean_Syntax_node2(x_238, x_246, x_261, x_262);
x_264 = lean_unsigned_to_nat(2u);
x_265 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__12;
x_266 = lean_array_push(x_265, x_239);
x_267 = lean_array_push(x_266, x_263);
x_268 = l_Lake_DSL_expandAttrs(x_6);
x_269 = l_Array_append___redArg(x_267, x_268);
lean_dec_ref(x_268);
x_270 = l_Lake_Name_quoteFrom(x_255, x_3, x_235);
if (lean_obj_tag(x_234) == 0)
{
lean_object* x_271; lean_object* x_272; 
x_271 = l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___redArg(x_10);
lean_dec(x_10);
x_272 = lean_ctor_get(x_271, 0);
lean_inc(x_272);
lean_dec_ref(x_271);
x_132 = x_237;
x_133 = x_259;
x_134 = x_240;
x_135 = x_253;
x_136 = x_241;
x_137 = x_270;
x_138 = x_243;
x_139 = x_269;
x_140 = x_247;
x_141 = x_264;
x_142 = x_248;
x_143 = x_245;
x_144 = x_257;
x_145 = x_249;
x_146 = x_250;
x_147 = x_272;
x_148 = lean_box(0);
goto block_229;
}
else
{
lean_object* x_273; 
lean_dec(x_10);
x_273 = lean_ctor_get(x_234, 0);
lean_inc(x_273);
lean_dec_ref(x_234);
x_132 = x_237;
x_133 = x_259;
x_134 = x_240;
x_135 = x_253;
x_136 = x_241;
x_137 = x_270;
x_138 = x_243;
x_139 = x_269;
x_140 = x_247;
x_141 = x_264;
x_142 = x_248;
x_143 = x_245;
x_144 = x_257;
x_145 = x_249;
x_146 = x_250;
x_147 = x_273;
x_148 = lean_box(0);
goto block_229;
}
}
else
{
uint8_t x_274; 
lean_dec(x_257);
lean_dec(x_255);
lean_dec(x_253);
lean_dec_ref(x_250);
lean_dec_ref(x_249);
lean_dec(x_248);
lean_dec(x_247);
lean_dec(x_246);
lean_dec_ref(x_245);
lean_dec(x_244);
lean_dec_ref(x_243);
lean_dec(x_242);
lean_dec(x_241);
lean_dec(x_240);
lean_dec(x_239);
lean_dec(x_238);
lean_dec(x_237);
lean_dec(x_236);
lean_dec(x_234);
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_274 = !lean_is_exclusive(x_258);
if (x_274 == 0)
{
return x_258;
}
else
{
lean_object* x_275; lean_object* x_276; 
x_275 = lean_ctor_get(x_258, 0);
lean_inc(x_275);
lean_dec(x_258);
x_276 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_276, 0, x_275);
return x_276;
}
}
}
else
{
uint8_t x_277; 
lean_dec(x_255);
lean_dec(x_253);
lean_dec_ref(x_250);
lean_dec_ref(x_249);
lean_dec(x_248);
lean_dec(x_247);
lean_dec(x_246);
lean_dec_ref(x_245);
lean_dec(x_244);
lean_dec_ref(x_243);
lean_dec(x_242);
lean_dec(x_241);
lean_dec(x_240);
lean_dec(x_239);
lean_dec(x_238);
lean_dec(x_237);
lean_dec(x_236);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_277 = !lean_is_exclusive(x_256);
if (x_277 == 0)
{
return x_256;
}
else
{
lean_object* x_278; lean_object* x_279; 
x_278 = lean_ctor_get(x_256, 0);
lean_inc(x_278);
lean_dec(x_256);
x_279 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_279, 0, x_278);
return x_279;
}
}
}
else
{
uint8_t x_280; 
lean_dec(x_253);
lean_dec_ref(x_250);
lean_dec_ref(x_249);
lean_dec(x_248);
lean_dec(x_247);
lean_dec(x_246);
lean_dec_ref(x_245);
lean_dec(x_244);
lean_dec_ref(x_243);
lean_dec(x_242);
lean_dec(x_241);
lean_dec(x_240);
lean_dec(x_239);
lean_dec(x_238);
lean_dec(x_237);
lean_dec(x_236);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_280 = !lean_is_exclusive(x_254);
if (x_280 == 0)
{
return x_254;
}
else
{
lean_object* x_281; lean_object* x_282; 
x_281 = lean_ctor_get(x_254, 0);
lean_inc(x_281);
lean_dec(x_254);
x_282 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_282, 0, x_281);
return x_282;
}
}
}
else
{
lean_dec_ref(x_250);
lean_dec_ref(x_249);
lean_dec(x_248);
lean_dec(x_247);
lean_dec(x_246);
lean_dec_ref(x_245);
lean_dec(x_244);
lean_dec_ref(x_243);
lean_dec(x_242);
lean_dec(x_241);
lean_dec(x_240);
lean_dec(x_239);
lean_dec(x_238);
lean_dec(x_237);
lean_dec(x_236);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
return x_252;
}
}
block_319:
{
lean_object* x_293; 
x_293 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___lam__0(x_9, x_10);
if (lean_obj_tag(x_293) == 0)
{
lean_object* x_294; lean_object* x_295; 
x_294 = lean_ctor_get(x_293, 0);
lean_inc(x_294);
lean_dec_ref(x_293);
x_295 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_9);
if (lean_obj_tag(x_295) == 0)
{
lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; 
lean_dec_ref(x_295);
x_296 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54;
x_297 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55;
x_298 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56;
x_299 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__14;
x_300 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__15;
x_301 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__45;
x_302 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__46;
lean_inc(x_285);
x_303 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_303, 0, x_285);
lean_ctor_set(x_303, 1, x_301);
lean_ctor_set(x_303, 2, x_302);
lean_inc_ref(x_303);
lean_inc(x_285);
x_304 = l_Lean_Syntax_node1(x_285, x_300, x_303);
x_305 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__16;
x_306 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__23;
x_307 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__25;
x_308 = l_Lean_addMacroScope(x_291, x_307, x_289);
lean_inc(x_288);
lean_inc(x_285);
x_309 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_309, 0, x_285);
lean_ctor_set(x_309, 1, x_306);
lean_ctor_set(x_309, 2, x_308);
lean_ctor_set(x_309, 3, x_288);
lean_inc(x_285);
x_310 = l_Lean_Syntax_node2(x_285, x_305, x_309, x_303);
x_311 = l_Lean_Syntax_node2(x_285, x_299, x_304, x_310);
if (lean_obj_tag(x_234) == 0)
{
lean_object* x_312; 
x_312 = l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___redArg(x_10);
lean_dec_ref(x_312);
x_236 = x_300;
x_237 = x_301;
x_238 = x_294;
x_239 = x_311;
x_240 = x_286;
x_241 = x_290;
x_242 = x_305;
x_243 = x_298;
x_244 = x_284;
x_245 = x_297;
x_246 = x_299;
x_247 = x_287;
x_248 = x_288;
x_249 = x_296;
x_250 = x_302;
x_251 = lean_box(0);
goto block_283;
}
else
{
x_236 = x_300;
x_237 = x_301;
x_238 = x_294;
x_239 = x_311;
x_240 = x_286;
x_241 = x_290;
x_242 = x_305;
x_243 = x_298;
x_244 = x_284;
x_245 = x_297;
x_246 = x_299;
x_247 = x_287;
x_248 = x_288;
x_249 = x_296;
x_250 = x_302;
x_251 = lean_box(0);
goto block_283;
}
}
else
{
uint8_t x_313; 
lean_dec(x_294);
lean_dec(x_291);
lean_dec(x_290);
lean_dec(x_289);
lean_dec(x_288);
lean_dec(x_287);
lean_dec(x_286);
lean_dec(x_285);
lean_dec(x_284);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_313 = !lean_is_exclusive(x_295);
if (x_313 == 0)
{
return x_295;
}
else
{
lean_object* x_314; lean_object* x_315; 
x_314 = lean_ctor_get(x_295, 0);
lean_inc(x_314);
lean_dec(x_295);
x_315 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_315, 0, x_314);
return x_315;
}
}
}
else
{
uint8_t x_316; 
lean_dec(x_291);
lean_dec(x_290);
lean_dec(x_289);
lean_dec(x_288);
lean_dec(x_287);
lean_dec(x_286);
lean_dec(x_285);
lean_dec(x_284);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_316 = !lean_is_exclusive(x_293);
if (x_316 == 0)
{
return x_293;
}
else
{
lean_object* x_317; lean_object* x_318; 
x_317 = lean_ctor_get(x_293, 0);
lean_inc(x_317);
lean_dec(x_293);
x_318 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_318, 0, x_317);
return x_318;
}
}
}
block_355:
{
lean_object* x_323; 
lean_inc(x_10);
lean_inc_ref(x_9);
x_323 = l_Lake_DSL_mkConfigDeclIdent(x_7, x_9, x_10);
if (lean_obj_tag(x_323) == 0)
{
lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; 
x_324 = lean_ctor_get(x_323, 0);
lean_inc(x_324);
lean_dec_ref(x_323);
x_325 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__18;
x_326 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__19;
x_327 = l_Lean_addMacroScope(x_321, x_326, x_233);
x_328 = lean_box(0);
x_329 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_329, 0, x_320);
lean_ctor_set(x_329, 1, x_325);
lean_ctor_set(x_329, 2, x_327);
lean_ctor_set(x_329, 3, x_328);
x_330 = l_Lean_TSyntax_getId(x_324);
lean_inc(x_324);
x_331 = l_Lake_Name_quoteFrom(x_324, x_330, x_235);
x_332 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__53;
lean_inc(x_331);
x_333 = lean_array_push(x_332, x_331);
lean_inc(x_1);
x_334 = l_Lean_Syntax_mkCApp(x_1, x_333);
lean_inc(x_10);
lean_inc_ref(x_9);
lean_inc_ref(x_329);
x_335 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand_spec__0_spec__0(x_1, x_329, x_334, x_8, x_9, x_10);
if (lean_obj_tag(x_335) == 0)
{
lean_object* x_336; 
lean_dec_ref(x_335);
x_336 = l_Lean_mkIdentFromRef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__8___redArg(x_2, x_235, x_9);
if (lean_obj_tag(x_336) == 0)
{
lean_object* x_337; lean_object* x_338; 
x_337 = lean_ctor_get(x_336, 0);
lean_inc(x_337);
lean_dec_ref(x_336);
x_338 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___lam__0(x_9, x_10);
if (lean_obj_tag(x_338) == 0)
{
lean_object* x_339; lean_object* x_340; 
x_339 = lean_ctor_get(x_338, 0);
lean_inc(x_339);
lean_dec_ref(x_338);
x_340 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_9);
if (lean_obj_tag(x_340) == 0)
{
if (lean_obj_tag(x_234) == 0)
{
lean_object* x_341; lean_object* x_342; lean_object* x_343; 
x_341 = lean_ctor_get(x_340, 0);
lean_inc(x_341);
lean_dec_ref(x_340);
x_342 = l_Lean_getMainModule___at___00Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6_spec__6___redArg(x_10);
x_343 = lean_ctor_get(x_342, 0);
lean_inc(x_343);
lean_dec_ref(x_342);
x_284 = x_337;
x_285 = x_339;
x_286 = x_324;
x_287 = x_329;
x_288 = x_328;
x_289 = x_341;
x_290 = x_331;
x_291 = x_343;
x_292 = lean_box(0);
goto block_319;
}
else
{
lean_object* x_344; lean_object* x_345; 
x_344 = lean_ctor_get(x_340, 0);
lean_inc(x_344);
lean_dec_ref(x_340);
x_345 = lean_ctor_get(x_234, 0);
lean_inc(x_345);
x_284 = x_337;
x_285 = x_339;
x_286 = x_324;
x_287 = x_329;
x_288 = x_328;
x_289 = x_344;
x_290 = x_331;
x_291 = x_345;
x_292 = lean_box(0);
goto block_319;
}
}
else
{
uint8_t x_346; 
lean_dec(x_339);
lean_dec(x_337);
lean_dec(x_331);
lean_dec_ref(x_329);
lean_dec(x_324);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_346 = !lean_is_exclusive(x_340);
if (x_346 == 0)
{
return x_340;
}
else
{
lean_object* x_347; lean_object* x_348; 
x_347 = lean_ctor_get(x_340, 0);
lean_inc(x_347);
lean_dec(x_340);
x_348 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_348, 0, x_347);
return x_348;
}
}
}
else
{
uint8_t x_349; 
lean_dec(x_337);
lean_dec(x_331);
lean_dec_ref(x_329);
lean_dec(x_324);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_349 = !lean_is_exclusive(x_338);
if (x_349 == 0)
{
return x_338;
}
else
{
lean_object* x_350; lean_object* x_351; 
x_350 = lean_ctor_get(x_338, 0);
lean_inc(x_350);
lean_dec(x_338);
x_351 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_351, 0, x_350);
return x_351;
}
}
}
else
{
lean_dec(x_331);
lean_dec_ref(x_329);
lean_dec(x_324);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
return x_336;
}
}
else
{
uint8_t x_352; 
lean_dec(x_331);
lean_dec_ref(x_329);
lean_dec(x_324);
lean_dec(x_234);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_352 = !lean_is_exclusive(x_335);
if (x_352 == 0)
{
return x_335;
}
else
{
lean_object* x_353; lean_object* x_354; 
x_353 = lean_ctor_get(x_335, 0);
lean_inc(x_353);
lean_dec(x_335);
x_354 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_354, 0, x_353);
return x_354;
}
}
}
else
{
lean_dec(x_321);
lean_dec(x_320);
lean_dec(x_234);
lean_dec(x_233);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_8);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_323;
}
}
}
else
{
uint8_t x_359; 
lean_dec(x_231);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_359 = !lean_is_exclusive(x_232);
if (x_359 == 0)
{
return x_232;
}
else
{
lean_object* x_360; lean_object* x_361; 
x_360 = lean_ctor_get(x_232, 0);
lean_inc(x_360);
lean_dec(x_232);
x_361 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_361, 0, x_360);
return x_361;
}
}
}
else
{
uint8_t x_362; 
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_362 = !lean_is_exclusive(x_230);
if (x_362 == 0)
{
return x_230;
}
else
{
lean_object* x_363; lean_object* x_364; 
x_363 = lean_ctor_get(x_230, 0);
lean_inc(x_363);
lean_dec(x_230);
x_364 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_364, 0, x_363);
return x_364;
}
}
block_131:
{
lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; 
lean_inc_ref(x_41);
x_43 = l_Array_append___redArg(x_41, x_42);
lean_dec_ref(x_42);
lean_inc(x_14);
lean_inc(x_26);
x_44 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_44, 0, x_26);
lean_ctor_set(x_44, 1, x_14);
lean_ctor_set(x_44, 2, x_43);
lean_inc_n(x_38, 6);
lean_inc(x_32);
lean_inc(x_26);
x_45 = l_Lean_Syntax_node7(x_26, x_32, x_44, x_38, x_38, x_38, x_38, x_38, x_38);
x_46 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__9;
lean_inc_ref(x_21);
lean_inc_ref(x_24);
lean_inc_ref(x_27);
x_47 = l_Lean_Name_mkStr4(x_27, x_24, x_21, x_46);
lean_inc(x_26);
x_48 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_48, 0, x_26);
lean_ctor_set(x_48, 1, x_46);
x_49 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__10;
lean_inc_ref(x_21);
lean_inc_ref(x_24);
lean_inc_ref(x_27);
x_50 = l_Lean_Name_mkStr4(x_27, x_24, x_21, x_49);
x_51 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__11;
x_52 = lean_box(2);
lean_inc(x_14);
x_53 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_53, 0, x_52);
lean_ctor_set(x_53, 1, x_14);
lean_ctor_set(x_53, 2, x_51);
x_54 = lean_mk_empty_array_with_capacity(x_39);
lean_inc(x_30);
x_55 = lean_array_push(x_54, x_30);
x_56 = lean_array_push(x_55, x_53);
lean_inc(x_50);
x_57 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_57, 0, x_52);
lean_ctor_set(x_57, 1, x_50);
lean_ctor_set(x_57, 2, x_56);
x_58 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__13;
lean_inc_ref(x_21);
lean_inc_ref(x_24);
lean_inc_ref(x_27);
x_59 = l_Lean_Name_mkStr4(x_27, x_24, x_21, x_58);
x_60 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__57;
lean_inc_ref(x_20);
lean_inc_ref(x_24);
lean_inc_ref(x_27);
x_61 = l_Lean_Name_mkStr4(x_27, x_24, x_20, x_60);
lean_inc(x_29);
lean_inc(x_61);
lean_inc(x_26);
x_62 = l_Lean_Syntax_node2(x_26, x_61, x_29, x_18);
lean_inc(x_14);
lean_inc(x_26);
x_63 = l_Lean_Syntax_node1(x_26, x_14, x_62);
lean_inc(x_38);
lean_inc(x_59);
lean_inc(x_26);
x_64 = l_Lean_Syntax_node2(x_26, x_59, x_38, x_63);
x_65 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__60;
lean_inc_ref(x_21);
lean_inc_ref(x_24);
lean_inc_ref(x_27);
x_66 = l_Lean_Name_mkStr4(x_27, x_24, x_21, x_65);
x_67 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__1;
x_68 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__2;
lean_inc_ref(x_35);
x_69 = l_Lean_Name_mkStr3(x_35, x_28, x_68);
lean_inc(x_15);
lean_inc(x_69);
lean_inc(x_31);
x_70 = l_Lean_addMacroScope(x_31, x_69, x_15);
lean_inc(x_16);
x_71 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_71, 0, x_69);
lean_ctor_set(x_71, 1, x_16);
lean_inc(x_25);
x_72 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_72, 0, x_71);
lean_ctor_set(x_72, 1, x_25);
lean_inc(x_26);
x_73 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_73, 0, x_26);
lean_ctor_set(x_73, 1, x_67);
lean_ctor_set(x_73, 2, x_70);
lean_ctor_set(x_73, 3, x_72);
lean_inc(x_14);
lean_inc(x_26);
x_74 = l_Lean_Syntax_node4(x_26, x_14, x_22, x_34, x_19, x_40);
lean_inc(x_26);
x_75 = l_Lean_Syntax_node2(x_26, x_12, x_73, x_74);
x_76 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__62;
x_77 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__63;
lean_inc_ref(x_24);
lean_inc_ref(x_27);
x_78 = l_Lean_Name_mkStr4(x_27, x_24, x_76, x_77);
lean_inc_n(x_38, 2);
lean_inc(x_26);
x_79 = l_Lean_Syntax_node2(x_26, x_78, x_38, x_38);
lean_inc(x_38);
lean_inc(x_79);
lean_inc(x_13);
lean_inc(x_66);
lean_inc(x_26);
x_80 = l_Lean_Syntax_node4(x_26, x_66, x_13, x_75, x_79, x_38);
lean_inc(x_26);
x_81 = l_Lean_Syntax_node4(x_26, x_47, x_48, x_57, x_64, x_80);
lean_inc(x_36);
lean_inc(x_26);
x_82 = l_Lean_Syntax_node2(x_26, x_36, x_45, x_81);
x_83 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__5;
lean_inc_ref(x_20);
lean_inc_ref(x_24);
lean_inc_ref(x_27);
x_84 = l_Lean_Name_mkStr4(x_27, x_24, x_20, x_83);
x_85 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__6;
lean_inc(x_26);
x_86 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_86, 0, x_26);
lean_ctor_set(x_86, 1, x_85);
x_87 = l_Lean_Syntax_SepArray_ofElems(x_37, x_23);
lean_dec_ref(x_23);
x_88 = l_Array_append___redArg(x_41, x_87);
lean_dec_ref(x_87);
lean_inc(x_14);
lean_inc(x_26);
x_89 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_89, 0, x_26);
lean_ctor_set(x_89, 1, x_14);
lean_ctor_set(x_89, 2, x_88);
x_90 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__8;
lean_inc(x_26);
x_91 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_91, 0, x_26);
lean_ctor_set(x_91, 1, x_90);
lean_inc(x_26);
x_92 = l_Lean_Syntax_node3(x_26, x_84, x_86, x_89, x_91);
lean_inc(x_14);
lean_inc(x_26);
x_93 = l_Lean_Syntax_node1(x_26, x_14, x_92);
lean_inc_n(x_38, 6);
lean_inc(x_26);
x_94 = l_Lean_Syntax_node7(x_26, x_32, x_38, x_93, x_38, x_38, x_38, x_38, x_38);
x_95 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__0;
lean_inc_ref(x_24);
lean_inc_ref(x_27);
x_96 = l_Lean_Name_mkStr4(x_27, x_24, x_21, x_95);
x_97 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__1;
lean_inc(x_26);
x_98 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_98, 0, x_26);
lean_ctor_set(x_98, 1, x_97);
x_99 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__3;
x_100 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__4;
lean_inc(x_15);
lean_inc(x_31);
x_101 = l_Lean_addMacroScope(x_31, x_100, x_15);
lean_inc(x_25);
lean_inc(x_26);
x_102 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_102, 0, x_26);
lean_ctor_set(x_102, 1, x_99);
lean_ctor_set(x_102, 2, x_101);
lean_ctor_set(x_102, 3, x_25);
lean_inc(x_38);
lean_inc(x_26);
x_103 = l_Lean_Syntax_node2(x_26, x_50, x_102, x_38);
x_104 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__5;
x_105 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__6;
x_106 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__7;
lean_inc(x_15);
lean_inc(x_31);
x_107 = l_Lean_addMacroScope(x_31, x_106, x_15);
x_108 = l_Lean_Name_mkStr2(x_35, x_104);
lean_inc(x_108);
x_109 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_109, 0, x_108);
lean_ctor_set(x_109, 1, x_16);
x_110 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_110, 0, x_108);
lean_inc(x_25);
x_111 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_111, 0, x_110);
lean_ctor_set(x_111, 1, x_25);
x_112 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_112, 0, x_109);
lean_ctor_set(x_112, 1, x_111);
lean_inc(x_26);
x_113 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_113, 0, x_26);
lean_ctor_set(x_113, 1, x_105);
lean_ctor_set(x_113, 2, x_107);
lean_ctor_set(x_113, 3, x_112);
lean_inc(x_26);
x_114 = l_Lean_Syntax_node2(x_26, x_61, x_29, x_113);
lean_inc(x_14);
lean_inc(x_26);
x_115 = l_Lean_Syntax_node1(x_26, x_14, x_114);
lean_inc(x_38);
lean_inc(x_26);
x_116 = l_Lean_Syntax_node2(x_26, x_59, x_38, x_115);
x_117 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__10;
x_118 = l_Lean_Name_mkStr4(x_27, x_24, x_20, x_117);
x_119 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__11;
lean_inc(x_26);
x_120 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_120, 0, x_26);
lean_ctor_set(x_120, 1, x_119);
x_121 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__13;
x_122 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__14;
x_123 = l_Lean_addMacroScope(x_31, x_122, x_15);
lean_inc(x_26);
x_124 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_124, 0, x_26);
lean_ctor_set(x_124, 1, x_121);
lean_ctor_set(x_124, 2, x_123);
lean_ctor_set(x_124, 3, x_25);
lean_inc(x_26);
x_125 = l_Lean_Syntax_node3(x_26, x_118, x_30, x_120, x_124);
lean_inc(x_38);
lean_inc(x_26);
x_126 = l_Lean_Syntax_node4(x_26, x_66, x_13, x_125, x_79, x_38);
lean_inc(x_26);
x_127 = l_Lean_Syntax_node5(x_26, x_96, x_98, x_103, x_116, x_126, x_38);
lean_inc(x_26);
x_128 = l_Lean_Syntax_node2(x_26, x_36, x_94, x_127);
x_129 = l_Lean_Syntax_node3(x_26, x_14, x_17, x_82, x_128);
x_130 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_130, 0, x_129);
return x_130;
}
block_229:
{
lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; 
x_149 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_150 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__27;
lean_inc_ref(x_146);
lean_inc(x_132);
lean_inc(x_144);
x_151 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_151, 0, x_144);
lean_ctor_set(x_151, 1, x_132);
lean_ctor_set(x_151, 2, x_146);
x_152 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__28;
lean_inc(x_144);
x_153 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_153, 0, x_144);
lean_ctor_set(x_153, 1, x_152);
x_154 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__39;
lean_inc(x_144);
x_155 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_155, 0, x_144);
lean_ctor_set(x_155, 1, x_154);
x_156 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__30;
x_157 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__31;
lean_inc(x_133);
lean_inc(x_147);
x_158 = l_Lean_addMacroScope(x_147, x_157, x_133);
x_159 = lean_box(0);
x_160 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__3;
lean_inc(x_142);
x_161 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_161, 0, x_160);
lean_ctor_set(x_161, 1, x_142);
lean_inc(x_144);
x_162 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_162, 0, x_144);
lean_ctor_set(x_162, 1, x_156);
lean_ctor_set(x_162, 2, x_158);
lean_ctor_set(x_162, 3, x_161);
x_163 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__35;
lean_inc_ref(x_138);
lean_inc_ref(x_143);
lean_inc_ref(x_145);
x_164 = l_Lean_Name_mkStr4(x_145, x_143, x_138, x_163);
x_165 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__22;
lean_inc_ref(x_138);
lean_inc_ref(x_143);
lean_inc_ref(x_145);
x_166 = l_Lean_Name_mkStr4(x_145, x_143, x_138, x_165);
x_167 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__23;
lean_inc(x_144);
x_168 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_168, 0, x_144);
lean_ctor_set(x_168, 1, x_167);
x_169 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__25;
x_170 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__27;
x_171 = lean_box(0);
lean_inc(x_133);
lean_inc(x_147);
x_172 = l_Lean_addMacroScope(x_147, x_171, x_133);
x_173 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_174 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__29;
x_175 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__59;
lean_inc_ref(x_143);
lean_inc_ref(x_145);
x_176 = l_Lean_Name_mkStr3(x_145, x_143, x_175);
x_177 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_177, 0, x_176);
x_178 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__30;
lean_inc_ref(x_145);
x_179 = l_Lean_Name_mkStr3(x_145, x_178, x_175);
x_180 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_180, 0, x_179);
lean_inc_ref(x_145);
x_181 = l_Lean_Name_mkStr2(x_145, x_178);
x_182 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_182, 0, x_181);
lean_inc_ref(x_143);
lean_inc_ref(x_145);
x_183 = l_Lean_Name_mkStr2(x_145, x_143);
x_184 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_184, 0, x_183);
lean_inc_ref(x_145);
x_185 = l_Lean_Name_mkStr1(x_145);
x_186 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_186, 0, x_185);
lean_inc(x_142);
x_187 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_187, 0, x_186);
lean_ctor_set(x_187, 1, x_142);
x_188 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_188, 0, x_184);
lean_ctor_set(x_188, 1, x_187);
x_189 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_189, 0, x_182);
lean_ctor_set(x_189, 1, x_188);
x_190 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_190, 0, x_180);
lean_ctor_set(x_190, 1, x_189);
x_191 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_191, 0, x_177);
lean_ctor_set(x_191, 1, x_190);
x_192 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_192, 0, x_174);
lean_ctor_set(x_192, 1, x_191);
lean_inc(x_144);
x_193 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_193, 0, x_144);
lean_ctor_set(x_193, 1, x_170);
lean_ctor_set(x_193, 2, x_172);
lean_ctor_set(x_193, 3, x_192);
lean_inc(x_144);
x_194 = l_Lean_Syntax_node1(x_144, x_169, x_193);
lean_inc(x_144);
x_195 = l_Lean_Syntax_node2(x_144, x_166, x_168, x_194);
x_196 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__37;
x_197 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__38;
lean_inc(x_144);
x_198 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_198, 0, x_144);
lean_ctor_set(x_198, 1, x_197);
lean_inc(x_144);
x_199 = l_Lean_Syntax_node1(x_144, x_196, x_198);
x_200 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__7;
lean_inc(x_144);
x_201 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_201, 0, x_144);
lean_ctor_set(x_201, 1, x_200);
lean_inc(x_136);
lean_inc(x_132);
lean_inc(x_144);
x_202 = l_Lean_Syntax_node1(x_144, x_132, x_136);
lean_inc(x_199);
lean_inc(x_132);
lean_inc(x_144);
x_203 = l_Lean_Syntax_node3(x_144, x_132, x_199, x_201, x_202);
x_204 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__34;
lean_inc(x_144);
x_205 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_205, 0, x_144);
lean_ctor_set(x_205, 1, x_204);
lean_inc(x_144);
x_206 = l_Lean_Syntax_node3(x_144, x_164, x_195, x_203, x_205);
x_207 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__14;
lean_inc(x_144);
x_208 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_208, 0, x_144);
lean_ctor_set(x_208, 1, x_207);
x_209 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__15;
lean_inc_ref(x_138);
lean_inc_ref(x_143);
lean_inc_ref(x_145);
x_210 = l_Lean_Name_mkStr4(x_145, x_143, x_138, x_209);
x_211 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__5;
x_212 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__6;
lean_inc(x_133);
lean_inc(x_147);
x_213 = l_Lean_addMacroScope(x_147, x_212, x_133);
x_214 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__8;
x_215 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__9;
lean_inc(x_142);
x_216 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_216, 0, x_215);
lean_ctor_set(x_216, 1, x_142);
x_217 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_217, 0, x_214);
lean_ctor_set(x_217, 1, x_216);
lean_inc(x_144);
x_218 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_218, 0, x_144);
lean_ctor_set(x_218, 1, x_211);
lean_ctor_set(x_218, 2, x_213);
lean_ctor_set(x_218, 3, x_217);
lean_inc(x_137);
lean_inc(x_132);
lean_inc(x_144);
x_219 = l_Lean_Syntax_node1(x_144, x_132, x_137);
lean_inc(x_210);
lean_inc(x_144);
x_220 = l_Lean_Syntax_node2(x_144, x_210, x_218, x_219);
lean_inc_ref(x_208);
lean_inc_ref(x_155);
lean_inc(x_134);
lean_inc_ref(x_151);
lean_inc(x_144);
x_221 = l_Lean_Syntax_node8(x_144, x_150, x_151, x_153, x_134, x_155, x_162, x_206, x_208, x_220);
x_222 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__40;
lean_inc_ref(x_143);
lean_inc_ref(x_145);
x_223 = l_Lean_Name_mkStr4(x_145, x_143, x_175, x_222);
x_224 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__41;
lean_inc_ref(x_143);
lean_inc_ref(x_145);
x_225 = l_Lean_Name_mkStr4(x_145, x_143, x_175, x_224);
if (lean_obj_tag(x_5) == 1)
{
lean_object* x_226; lean_object* x_227; 
x_226 = lean_ctor_get(x_5, 0);
lean_inc(x_226);
lean_dec_ref(x_5);
x_227 = l_Array_mkArray1___redArg(x_226);
x_12 = x_210;
x_13 = x_208;
x_14 = x_132;
x_15 = x_133;
x_16 = x_159;
x_17 = x_221;
x_18 = x_135;
x_19 = x_137;
x_20 = x_138;
x_21 = x_175;
x_22 = x_199;
x_23 = x_139;
x_24 = x_143;
x_25 = x_142;
x_26 = x_144;
x_27 = x_145;
x_28 = x_173;
x_29 = x_155;
x_30 = x_134;
x_31 = x_147;
x_32 = x_225;
x_33 = lean_box(0);
x_34 = x_136;
x_35 = x_149;
x_36 = x_223;
x_37 = x_200;
x_38 = x_151;
x_39 = x_141;
x_40 = x_140;
x_41 = x_146;
x_42 = x_227;
goto block_131;
}
else
{
lean_object* x_228; 
lean_dec(x_5);
x_228 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__35;
x_12 = x_210;
x_13 = x_208;
x_14 = x_132;
x_15 = x_133;
x_16 = x_159;
x_17 = x_221;
x_18 = x_135;
x_19 = x_137;
x_20 = x_138;
x_21 = x_175;
x_22 = x_199;
x_23 = x_139;
x_24 = x_143;
x_25 = x_142;
x_26 = x_144;
x_27 = x_145;
x_28 = x_173;
x_29 = x_155;
x_30 = x_134;
x_31 = x_147;
x_32 = x_225;
x_33 = lean_box(0);
x_34 = x_136;
x_35 = x_149;
x_36 = x_223;
x_37 = x_200;
x_38 = x_151;
x_39 = x_141;
x_40 = x_140;
x_41 = x_146;
x_42 = x_228;
goto block_131;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; uint8_t x_6; 
x_5 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__1;
lean_inc(x_1);
x_6 = l_Lean_Syntax_isOfKind(x_1, x_5);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; 
x_7 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__3;
x_8 = l_Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0___redArg(x_1, x_7, x_2, x_3);
lean_dec(x_3);
lean_dec(x_1);
return x_8;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_63; lean_object* x_64; lean_object* x_71; lean_object* x_78; 
x_9 = lean_unsigned_to_nat(0u);
x_10 = l_Lean_Syntax_getArg(x_1, x_9);
x_11 = lean_unsigned_to_nat(1u);
x_12 = l_Lean_Syntax_getArg(x_1, x_11);
x_13 = lean_unsigned_to_nat(2u);
x_14 = l_Lean_Syntax_getArg(x_1, x_13);
x_15 = lean_unsigned_to_nat(3u);
x_16 = l_Lean_Syntax_getArg(x_1, x_15);
x_17 = lean_unsigned_to_nat(4u);
x_18 = l_Lean_Syntax_getArg(x_1, x_17);
x_78 = l_Lean_Syntax_getOptional_x3f(x_16);
lean_dec(x_16);
if (lean_obj_tag(x_78) == 0)
{
lean_object* x_79; 
x_79 = lean_box(0);
x_71 = x_79;
goto block_77;
}
else
{
uint8_t x_80; 
x_80 = !lean_is_exclusive(x_78);
if (x_80 == 0)
{
x_71 = x_78;
goto block_77;
}
else
{
lean_object* x_81; lean_object* x_82; 
x_81 = lean_ctor_get(x_78, 0);
lean_inc(x_81);
lean_dec(x_78);
x_82 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_82, 0, x_81);
x_71 = x_82;
goto block_77;
}
}
block_62:
{
lean_object* x_22; 
x_22 = l_Lean_Elab_Command_getRef___redArg(x_2);
if (lean_obj_tag(x_22) == 0)
{
lean_object* x_23; uint8_t x_24; 
x_23 = lean_ctor_get(x_22, 0);
lean_inc(x_23);
lean_dec_ref(x_22);
x_24 = !lean_is_exclusive(x_2);
if (x_24 == 0)
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
x_25 = lean_ctor_get(x_2, 7);
lean_dec(x_25);
x_26 = l_Lake_instTypeNameInputDirDecl_unsafe__1;
x_27 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__5;
x_28 = l_Lake_InputDir_keyword;
x_29 = l_Lean_replaceRef(x_14, x_23);
lean_dec(x_23);
lean_dec(x_14);
lean_ctor_set(x_2, 7, x_29);
lean_inc(x_3);
lean_inc_ref(x_2);
x_30 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand_spec__0(x_27, x_28, x_28, x_26, x_21, x_20, x_19, x_18, x_2, x_3);
if (lean_obj_tag(x_30) == 0)
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_31 = lean_ctor_get(x_30, 0);
lean_inc(x_31);
lean_dec_ref(x_30);
lean_inc(x_31);
x_32 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCommand___boxed), 4, 1);
lean_closure_set(x_32, 0, x_31);
x_33 = l_Lean_Elab_Command_withMacroExpansion___redArg(x_1, x_31, x_32, x_2, x_3);
return x_33;
}
else
{
uint8_t x_34; 
lean_dec_ref(x_2);
lean_dec(x_3);
lean_dec(x_1);
x_34 = !lean_is_exclusive(x_30);
if (x_34 == 0)
{
return x_30;
}
else
{
lean_object* x_35; lean_object* x_36; 
x_35 = lean_ctor_get(x_30, 0);
lean_inc(x_35);
lean_dec(x_30);
x_36 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_36, 0, x_35);
return x_36;
}
}
}
else
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; 
x_37 = lean_ctor_get(x_2, 0);
x_38 = lean_ctor_get(x_2, 1);
x_39 = lean_ctor_get(x_2, 2);
x_40 = lean_ctor_get(x_2, 3);
x_41 = lean_ctor_get(x_2, 4);
x_42 = lean_ctor_get(x_2, 5);
x_43 = lean_ctor_get(x_2, 6);
x_44 = lean_ctor_get(x_2, 8);
x_45 = lean_ctor_get(x_2, 9);
x_46 = lean_ctor_get_uint8(x_2, sizeof(void*)*10);
lean_inc(x_45);
lean_inc(x_44);
lean_inc(x_43);
lean_inc(x_42);
lean_inc(x_41);
lean_inc(x_40);
lean_inc(x_39);
lean_inc(x_38);
lean_inc(x_37);
lean_dec(x_2);
x_47 = l_Lake_instTypeNameInputDirDecl_unsafe__1;
x_48 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__5;
x_49 = l_Lake_InputDir_keyword;
x_50 = l_Lean_replaceRef(x_14, x_23);
lean_dec(x_23);
lean_dec(x_14);
x_51 = lean_alloc_ctor(0, 10, 1);
lean_ctor_set(x_51, 0, x_37);
lean_ctor_set(x_51, 1, x_38);
lean_ctor_set(x_51, 2, x_39);
lean_ctor_set(x_51, 3, x_40);
lean_ctor_set(x_51, 4, x_41);
lean_ctor_set(x_51, 5, x_42);
lean_ctor_set(x_51, 6, x_43);
lean_ctor_set(x_51, 7, x_50);
lean_ctor_set(x_51, 8, x_44);
lean_ctor_set(x_51, 9, x_45);
lean_ctor_set_uint8(x_51, sizeof(void*)*10, x_46);
lean_inc(x_3);
lean_inc_ref(x_51);
x_52 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand_spec__0(x_48, x_49, x_49, x_47, x_21, x_20, x_19, x_18, x_51, x_3);
if (lean_obj_tag(x_52) == 0)
{
lean_object* x_53; lean_object* x_54; lean_object* x_55; 
x_53 = lean_ctor_get(x_52, 0);
lean_inc(x_53);
lean_dec_ref(x_52);
lean_inc(x_53);
x_54 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCommand___boxed), 4, 1);
lean_closure_set(x_54, 0, x_53);
x_55 = l_Lean_Elab_Command_withMacroExpansion___redArg(x_1, x_53, x_54, x_51, x_3);
return x_55;
}
else
{
lean_object* x_56; lean_object* x_57; lean_object* x_58; 
lean_dec_ref(x_51);
lean_dec(x_3);
lean_dec(x_1);
x_56 = lean_ctor_get(x_52, 0);
lean_inc(x_56);
if (lean_is_exclusive(x_52)) {
 lean_ctor_release(x_52, 0);
 x_57 = x_52;
} else {
 lean_dec_ref(x_52);
 x_57 = lean_box(0);
}
if (lean_is_scalar(x_57)) {
 x_58 = lean_alloc_ctor(1, 1, 0);
} else {
 x_58 = x_57;
}
lean_ctor_set(x_58, 0, x_56);
return x_58;
}
}
}
else
{
uint8_t x_59; 
lean_dec(x_21);
lean_dec(x_20);
lean_dec(x_19);
lean_dec(x_18);
lean_dec(x_14);
lean_dec(x_3);
lean_dec_ref(x_2);
lean_dec(x_1);
x_59 = !lean_is_exclusive(x_22);
if (x_59 == 0)
{
return x_22;
}
else
{
lean_object* x_60; lean_object* x_61; 
x_60 = lean_ctor_get(x_22, 0);
lean_inc(x_60);
lean_dec(x_22);
x_61 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_61, 0, x_60);
return x_61;
}
}
}
block_70:
{
lean_object* x_65; 
x_65 = l_Lean_Syntax_getOptional_x3f(x_10);
lean_dec(x_10);
if (lean_obj_tag(x_65) == 0)
{
lean_object* x_66; 
x_66 = lean_box(0);
x_19 = x_63;
x_20 = x_64;
x_21 = x_66;
goto block_62;
}
else
{
uint8_t x_67; 
x_67 = !lean_is_exclusive(x_65);
if (x_67 == 0)
{
x_19 = x_63;
x_20 = x_64;
x_21 = x_65;
goto block_62;
}
else
{
lean_object* x_68; lean_object* x_69; 
x_68 = lean_ctor_get(x_65, 0);
lean_inc(x_68);
lean_dec(x_65);
x_69 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_69, 0, x_68);
x_19 = x_63;
x_20 = x_64;
x_21 = x_69;
goto block_62;
}
}
}
block_77:
{
lean_object* x_72; 
x_72 = l_Lean_Syntax_getOptional_x3f(x_12);
lean_dec(x_12);
if (lean_obj_tag(x_72) == 0)
{
lean_object* x_73; 
x_73 = lean_box(0);
x_63 = x_71;
x_64 = x_73;
goto block_70;
}
else
{
uint8_t x_74; 
x_74 = !lean_is_exclusive(x_72);
if (x_74 == 0)
{
x_63 = x_71;
x_64 = x_72;
goto block_70;
}
else
{
lean_object* x_75; lean_object* x_76; 
x_75 = lean_ctor_get(x_72, 0);
lean_inc(x_75);
lean_dec(x_72);
x_76 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_76, 0, x_75);
x_63 = x_71;
x_64 = x_76;
goto block_70;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand(x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6);
return x_8;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; 
x_12 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
return x_12;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand__1___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabInputDirCommand", 19, 19);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand__1___closed__0;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__9;
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand__1() {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1___closed__0;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__1;
x_4 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand__1___closed__1;
x_5 = lean_alloc_closure((void*)(l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___boxed), 4, 0);
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___redArg(x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand__1___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand__1();
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_mkExternLibDecl___lam__0(lean_object* x_1) {
_start:
{
lean_inc_ref(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_mkExternLibDecl___lam__0___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_DSL_mkExternLibDecl___lam__0(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_mkExternLibDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_alloc_closure((void*)(l_Lake_DSL_mkExternLibDecl___lam__0___boxed), 1, 0);
x_6 = l_Lake_ExternLib_keyword;
x_7 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_7, 0, x_1);
lean_ctor_set(x_7, 1, x_2);
lean_ctor_set(x_7, 2, x_6);
lean_ctor_set(x_7, 3, x_5);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_mkExternLibDecl___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_alloc_closure((void*)(l_Lake_DSL_mkExternLibDecl___lam__0___boxed), 1, 0);
x_4 = l_Lake_ExternLib_keyword;
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_4);
lean_ctor_set(x_5, 3, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; lean_object* x_6; 
x_4 = 0;
x_5 = l_Lean_SourceInfo_fromRef(x_1, x_4);
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_5);
lean_ctor_set(x_6, 1, x_3);
return x_6;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__1___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("static", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__1___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__1___closed__1;
x_3 = l_Lean_Name_append(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("externLibCommand", 16, 16);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__0;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ill-formed external library declaration", 39, 39);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ExternLibDecl", 13, 13);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__3;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__3;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__3;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lake.DSL.mkExternLibDecl", 24, 24);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__7;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("mkExternLibDecl", 15, 15);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__9;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("FilePath", 8, 8);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__11;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__11;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__14() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("System", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__11;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__14;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__15;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__17() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("«extern_lib»", 14, 12);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__17;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__19() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("extern_lib", 10, 10);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__20() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__19;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__21() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ill-formed external library signature", 37, 37);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__22() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("externLibDeclSpec", 17, 17);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__23() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__22;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__1;
lean_inc(x_1);
x_5 = l_Lean_Syntax_isOfKind(x_1, x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; 
x_6 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__2;
x_7 = l_Lean_Macro_throwErrorAt___redArg(x_1, x_6, x_2, x_3);
lean_dec(x_1);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_516; lean_object* x_523; 
x_8 = lean_unsigned_to_nat(0u);
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
x_10 = lean_unsigned_to_nat(1u);
x_11 = l_Lean_Syntax_getArg(x_1, x_10);
x_12 = lean_unsigned_to_nat(2u);
x_282 = l_Lean_Syntax_getArg(x_1, x_12);
x_457 = lean_unsigned_to_nat(3u);
x_458 = l_Lean_Syntax_getArg(x_1, x_457);
lean_dec(x_1);
x_500 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__23;
x_523 = l_Lean_Syntax_getOptional_x3f(x_11);
lean_dec(x_11);
if (lean_obj_tag(x_523) == 0)
{
lean_object* x_524; 
x_524 = lean_box(0);
x_516 = x_524;
goto block_522;
}
else
{
uint8_t x_525; 
x_525 = !lean_is_exclusive(x_523);
if (x_525 == 0)
{
x_516 = x_523;
goto block_522;
}
else
{
lean_object* x_526; lean_object* x_527; 
x_526 = lean_ctor_get(x_523, 0);
lean_inc(x_526);
lean_dec(x_523);
x_527 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_527, 0, x_526);
x_516 = x_527;
goto block_522;
}
}
block_124:
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; 
lean_inc_ref(x_17);
x_42 = l_Array_append___redArg(x_17, x_41);
lean_dec_ref(x_41);
lean_inc(x_36);
lean_inc(x_23);
x_43 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_43, 0, x_23);
lean_ctor_set(x_43, 1, x_36);
lean_ctor_set(x_43, 2, x_42);
lean_inc_n(x_22, 6);
lean_inc(x_30);
lean_inc(x_23);
x_44 = l_Lean_Syntax_node7(x_23, x_30, x_43, x_22, x_22, x_22, x_22, x_22, x_22);
x_45 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__0;
lean_inc_ref(x_24);
lean_inc_ref(x_29);
lean_inc_ref(x_28);
x_46 = l_Lean_Name_mkStr4(x_28, x_29, x_24, x_45);
x_47 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__1;
lean_inc(x_23);
x_48 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_48, 0, x_23);
lean_ctor_set(x_48, 1, x_47);
x_49 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__10;
lean_inc_ref(x_24);
lean_inc_ref(x_29);
lean_inc_ref(x_28);
x_50 = l_Lean_Name_mkStr4(x_28, x_29, x_24, x_49);
x_51 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__11;
x_52 = lean_box(2);
lean_inc(x_36);
x_53 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_53, 0, x_52);
lean_ctor_set(x_53, 1, x_36);
lean_ctor_set(x_53, 2, x_51);
x_54 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__12;
lean_inc(x_33);
x_55 = lean_array_push(x_54, x_33);
x_56 = lean_array_push(x_55, x_53);
lean_inc(x_50);
x_57 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_57, 0, x_52);
lean_ctor_set(x_57, 1, x_50);
lean_ctor_set(x_57, 2, x_56);
x_58 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__13;
lean_inc_ref(x_29);
lean_inc_ref(x_28);
x_59 = l_Lean_Name_mkStr4(x_28, x_29, x_24, x_58);
x_60 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__4;
x_61 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__5;
lean_inc(x_27);
lean_inc(x_13);
x_62 = l_Lean_addMacroScope(x_13, x_61, x_27);
x_63 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__6;
lean_inc(x_35);
x_64 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_64, 0, x_63);
lean_ctor_set(x_64, 1, x_35);
lean_inc(x_37);
x_65 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_65, 0, x_64);
lean_ctor_set(x_65, 1, x_37);
lean_inc(x_23);
x_66 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_66, 0, x_23);
lean_ctor_set(x_66, 1, x_60);
lean_ctor_set(x_66, 2, x_62);
lean_ctor_set(x_66, 3, x_65);
lean_inc(x_21);
lean_inc(x_19);
lean_inc(x_23);
x_67 = l_Lean_Syntax_node2(x_23, x_19, x_21, x_66);
lean_inc(x_36);
lean_inc(x_23);
x_68 = l_Lean_Syntax_node1(x_23, x_36, x_67);
lean_inc(x_22);
lean_inc(x_59);
lean_inc(x_23);
x_69 = l_Lean_Syntax_node2(x_23, x_59, x_22, x_68);
x_70 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__8;
x_71 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__10;
lean_inc(x_27);
lean_inc(x_13);
x_72 = l_Lean_addMacroScope(x_13, x_71, x_27);
lean_inc(x_35);
x_73 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_73, 0, x_71);
lean_ctor_set(x_73, 1, x_35);
lean_inc(x_37);
x_74 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_74, 0, x_73);
lean_ctor_set(x_74, 1, x_37);
lean_inc(x_23);
x_75 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_75, 0, x_23);
lean_ctor_set(x_75, 1, x_70);
lean_ctor_set(x_75, 2, x_72);
lean_ctor_set(x_75, 3, x_74);
lean_inc(x_36);
lean_inc(x_23);
x_76 = l_Lean_Syntax_node2(x_23, x_36, x_39, x_15);
lean_inc(x_23);
x_77 = l_Lean_Syntax_node2(x_23, x_38, x_75, x_76);
lean_inc(x_22);
lean_inc(x_16);
lean_inc(x_18);
lean_inc(x_25);
lean_inc(x_23);
x_78 = l_Lean_Syntax_node4(x_23, x_25, x_18, x_77, x_16, x_22);
lean_inc(x_22);
lean_inc_ref(x_48);
lean_inc(x_46);
lean_inc(x_23);
x_79 = l_Lean_Syntax_node5(x_23, x_46, x_48, x_57, x_69, x_78, x_22);
lean_inc(x_40);
lean_inc(x_23);
x_80 = l_Lean_Syntax_node2(x_23, x_40, x_44, x_79);
x_81 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__5;
lean_inc_ref(x_14);
lean_inc_ref(x_29);
lean_inc_ref(x_28);
x_82 = l_Lean_Name_mkStr4(x_28, x_29, x_14, x_81);
x_83 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__6;
lean_inc(x_23);
x_84 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_84, 0, x_23);
lean_ctor_set(x_84, 1, x_83);
x_85 = l_Lean_Syntax_SepArray_ofElems(x_20, x_31);
lean_dec_ref(x_31);
x_86 = l_Array_append___redArg(x_17, x_85);
lean_dec_ref(x_85);
lean_inc(x_36);
lean_inc(x_23);
x_87 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_87, 0, x_23);
lean_ctor_set(x_87, 1, x_36);
lean_ctor_set(x_87, 2, x_86);
x_88 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__8;
lean_inc(x_23);
x_89 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_89, 0, x_23);
lean_ctor_set(x_89, 1, x_88);
lean_inc(x_23);
x_90 = l_Lean_Syntax_node3(x_23, x_82, x_84, x_87, x_89);
lean_inc(x_36);
lean_inc(x_23);
x_91 = l_Lean_Syntax_node1(x_23, x_36, x_90);
lean_inc_n(x_22, 6);
lean_inc(x_23);
x_92 = l_Lean_Syntax_node7(x_23, x_30, x_22, x_91, x_22, x_22, x_22, x_22, x_22);
x_93 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__3;
x_94 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__4;
lean_inc(x_27);
lean_inc(x_13);
x_95 = l_Lean_addMacroScope(x_13, x_94, x_27);
lean_inc(x_37);
lean_inc(x_23);
x_96 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_96, 0, x_23);
lean_ctor_set(x_96, 1, x_93);
lean_ctor_set(x_96, 2, x_95);
lean_ctor_set(x_96, 3, x_37);
lean_inc(x_22);
lean_inc(x_23);
x_97 = l_Lean_Syntax_node2(x_23, x_50, x_96, x_22);
x_98 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__6;
x_99 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__7;
lean_inc(x_27);
lean_inc(x_13);
x_100 = l_Lean_addMacroScope(x_13, x_99, x_27);
x_101 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__8;
x_102 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_102, 0, x_101);
lean_ctor_set(x_102, 1, x_35);
x_103 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__9;
lean_inc(x_37);
x_104 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_104, 0, x_103);
lean_ctor_set(x_104, 1, x_37);
x_105 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_105, 0, x_102);
lean_ctor_set(x_105, 1, x_104);
lean_inc(x_23);
x_106 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_106, 0, x_23);
lean_ctor_set(x_106, 1, x_98);
lean_ctor_set(x_106, 2, x_100);
lean_ctor_set(x_106, 3, x_105);
lean_inc(x_23);
x_107 = l_Lean_Syntax_node2(x_23, x_19, x_21, x_106);
lean_inc(x_36);
lean_inc(x_23);
x_108 = l_Lean_Syntax_node1(x_23, x_36, x_107);
lean_inc(x_22);
lean_inc(x_23);
x_109 = l_Lean_Syntax_node2(x_23, x_59, x_22, x_108);
x_110 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__10;
x_111 = l_Lean_Name_mkStr4(x_28, x_29, x_14, x_110);
x_112 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__11;
lean_inc(x_23);
x_113 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_113, 0, x_23);
lean_ctor_set(x_113, 1, x_112);
x_114 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__13;
x_115 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__14;
x_116 = l_Lean_addMacroScope(x_13, x_115, x_27);
lean_inc(x_23);
x_117 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_117, 0, x_23);
lean_ctor_set(x_117, 1, x_114);
lean_ctor_set(x_117, 2, x_116);
lean_ctor_set(x_117, 3, x_37);
lean_inc(x_23);
x_118 = l_Lean_Syntax_node3(x_23, x_111, x_33, x_113, x_117);
lean_inc(x_22);
lean_inc(x_23);
x_119 = l_Lean_Syntax_node4(x_23, x_25, x_18, x_118, x_16, x_22);
lean_inc(x_23);
x_120 = l_Lean_Syntax_node5(x_23, x_46, x_48, x_97, x_109, x_119, x_22);
lean_inc(x_23);
x_121 = l_Lean_Syntax_node2(x_23, x_40, x_92, x_120);
x_122 = l_Lean_Syntax_node4(x_23, x_36, x_34, x_32, x_80, x_121);
x_123 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_123, 0, x_122);
lean_ctor_set(x_123, 1, x_26);
return x_123;
}
block_234:
{
lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; 
lean_inc_ref(x_131);
x_156 = l_Array_append___redArg(x_131, x_155);
lean_dec_ref(x_155);
lean_inc(x_150);
lean_inc(x_138);
x_157 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_157, 0, x_138);
lean_ctor_set(x_157, 1, x_150);
lean_ctor_set(x_157, 2, x_156);
lean_inc(x_130);
lean_inc(x_133);
lean_inc(x_140);
lean_inc(x_138);
x_158 = l_Lean_Syntax_node4(x_138, x_140, x_133, x_127, x_130, x_157);
lean_inc(x_138);
x_159 = l_Lean_Syntax_node4(x_138, x_148, x_147, x_126, x_153, x_158);
lean_inc_n(x_137, 2);
lean_inc(x_138);
x_160 = l_Lean_Syntax_node4(x_138, x_139, x_137, x_137, x_132, x_159);
x_161 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__27;
x_162 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__28;
lean_inc(x_138);
x_163 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_163, 0, x_138);
lean_ctor_set(x_163, 1, x_162);
x_164 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__30;
x_165 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__31;
lean_inc(x_143);
lean_inc(x_125);
x_166 = l_Lean_addMacroScope(x_125, x_165, x_143);
x_167 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__32;
lean_inc(x_151);
x_168 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_168, 0, x_167);
lean_ctor_set(x_168, 1, x_151);
lean_inc(x_154);
x_169 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_169, 0, x_168);
lean_ctor_set(x_169, 1, x_154);
lean_inc(x_138);
x_170 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_170, 0, x_138);
lean_ctor_set(x_170, 1, x_164);
lean_ctor_set(x_170, 2, x_166);
lean_ctor_set(x_170, 3, x_169);
x_171 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__35;
lean_inc_ref(x_128);
lean_inc_ref(x_145);
lean_inc_ref(x_144);
x_172 = l_Lean_Name_mkStr4(x_144, x_145, x_128, x_171);
x_173 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__22;
lean_inc_ref(x_128);
lean_inc_ref(x_145);
lean_inc_ref(x_144);
x_174 = l_Lean_Name_mkStr4(x_144, x_145, x_128, x_173);
x_175 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__23;
lean_inc(x_138);
x_176 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_176, 0, x_138);
lean_ctor_set(x_176, 1, x_175);
x_177 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__25;
x_178 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__27;
x_179 = lean_box(0);
lean_inc(x_143);
lean_inc(x_125);
x_180 = l_Lean_addMacroScope(x_125, x_179, x_143);
x_181 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__29;
lean_inc_ref(x_141);
lean_inc_ref(x_145);
lean_inc_ref(x_144);
x_182 = l_Lean_Name_mkStr3(x_144, x_145, x_141);
x_183 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_183, 0, x_182);
x_184 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__30;
lean_inc_ref(x_141);
lean_inc_ref(x_144);
x_185 = l_Lean_Name_mkStr3(x_144, x_184, x_141);
x_186 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_186, 0, x_185);
lean_inc_ref(x_144);
x_187 = l_Lean_Name_mkStr2(x_144, x_184);
x_188 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_188, 0, x_187);
lean_inc_ref(x_145);
lean_inc_ref(x_144);
x_189 = l_Lean_Name_mkStr2(x_144, x_145);
x_190 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_190, 0, x_189);
lean_inc_ref(x_144);
x_191 = l_Lean_Name_mkStr1(x_144);
x_192 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_192, 0, x_191);
lean_inc(x_154);
x_193 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_193, 0, x_192);
lean_ctor_set(x_193, 1, x_154);
x_194 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_194, 0, x_190);
lean_ctor_set(x_194, 1, x_193);
x_195 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_195, 0, x_188);
lean_ctor_set(x_195, 1, x_194);
x_196 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_196, 0, x_186);
lean_ctor_set(x_196, 1, x_195);
x_197 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_197, 0, x_183);
lean_ctor_set(x_197, 1, x_196);
x_198 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_198, 0, x_181);
lean_ctor_set(x_198, 1, x_197);
lean_inc(x_138);
x_199 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_199, 0, x_138);
lean_ctor_set(x_199, 1, x_178);
lean_ctor_set(x_199, 2, x_180);
lean_ctor_set(x_199, 3, x_198);
lean_inc(x_138);
x_200 = l_Lean_Syntax_node1(x_138, x_177, x_199);
lean_inc(x_138);
x_201 = l_Lean_Syntax_node2(x_138, x_174, x_176, x_200);
x_202 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__37;
x_203 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__38;
lean_inc(x_138);
x_204 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_204, 0, x_138);
lean_ctor_set(x_204, 1, x_203);
lean_inc(x_138);
x_205 = l_Lean_Syntax_node1(x_138, x_202, x_204);
x_206 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__7;
lean_inc(x_138);
x_207 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_207, 0, x_138);
lean_ctor_set(x_207, 1, x_206);
lean_inc(x_129);
lean_inc(x_150);
lean_inc(x_138);
x_208 = l_Lean_Syntax_node1(x_138, x_150, x_129);
lean_inc(x_205);
lean_inc(x_150);
lean_inc(x_138);
x_209 = l_Lean_Syntax_node3(x_138, x_150, x_205, x_207, x_208);
x_210 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__34;
lean_inc(x_138);
x_211 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_211, 0, x_138);
lean_ctor_set(x_211, 1, x_210);
lean_inc(x_138);
x_212 = l_Lean_Syntax_node3(x_138, x_172, x_201, x_209, x_211);
x_213 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__15;
lean_inc_ref(x_128);
lean_inc_ref(x_145);
lean_inc_ref(x_144);
x_214 = l_Lean_Name_mkStr4(x_144, x_145, x_128, x_213);
x_215 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__5;
x_216 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__6;
lean_inc(x_143);
lean_inc(x_125);
x_217 = l_Lean_addMacroScope(x_125, x_216, x_143);
x_218 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__7;
lean_inc(x_151);
x_219 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_219, 0, x_218);
lean_ctor_set(x_219, 1, x_151);
x_220 = l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__9;
lean_inc(x_154);
x_221 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_221, 0, x_220);
lean_ctor_set(x_221, 1, x_154);
x_222 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_222, 0, x_219);
lean_ctor_set(x_222, 1, x_221);
lean_inc(x_138);
x_223 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_223, 0, x_138);
lean_ctor_set(x_223, 1, x_215);
lean_ctor_set(x_223, 2, x_217);
lean_ctor_set(x_223, 3, x_222);
lean_inc(x_150);
lean_inc(x_138);
x_224 = l_Lean_Syntax_node1(x_138, x_150, x_136);
lean_inc(x_214);
lean_inc(x_138);
x_225 = l_Lean_Syntax_node2(x_138, x_214, x_223, x_224);
lean_inc(x_133);
lean_inc(x_135);
lean_inc(x_149);
lean_inc(x_137);
lean_inc(x_138);
x_226 = l_Lean_Syntax_node8(x_138, x_161, x_137, x_163, x_149, x_135, x_170, x_212, x_133, x_225);
x_227 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__40;
lean_inc_ref(x_141);
lean_inc_ref(x_145);
lean_inc_ref(x_144);
x_228 = l_Lean_Name_mkStr4(x_144, x_145, x_141, x_227);
x_229 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__41;
lean_inc_ref(x_141);
lean_inc_ref(x_145);
lean_inc_ref(x_144);
x_230 = l_Lean_Name_mkStr4(x_144, x_145, x_141, x_229);
if (lean_obj_tag(x_152) == 1)
{
lean_object* x_231; lean_object* x_232; 
x_231 = lean_ctor_get(x_152, 0);
lean_inc(x_231);
lean_dec_ref(x_152);
x_232 = l_Array_mkArray1___redArg(x_231);
x_13 = x_125;
x_14 = x_128;
x_15 = x_129;
x_16 = x_130;
x_17 = x_131;
x_18 = x_133;
x_19 = x_134;
x_20 = x_206;
x_21 = x_135;
x_22 = x_137;
x_23 = x_138;
x_24 = x_141;
x_25 = x_140;
x_26 = x_142;
x_27 = x_143;
x_28 = x_144;
x_29 = x_145;
x_30 = x_230;
x_31 = x_146;
x_32 = x_226;
x_33 = x_149;
x_34 = x_160;
x_35 = x_151;
x_36 = x_150;
x_37 = x_154;
x_38 = x_214;
x_39 = x_205;
x_40 = x_228;
x_41 = x_232;
goto block_124;
}
else
{
lean_object* x_233; 
lean_dec(x_152);
x_233 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__35;
x_13 = x_125;
x_14 = x_128;
x_15 = x_129;
x_16 = x_130;
x_17 = x_131;
x_18 = x_133;
x_19 = x_134;
x_20 = x_206;
x_21 = x_135;
x_22 = x_137;
x_23 = x_138;
x_24 = x_141;
x_25 = x_140;
x_26 = x_142;
x_27 = x_143;
x_28 = x_144;
x_29 = x_145;
x_30 = x_230;
x_31 = x_146;
x_32 = x_226;
x_33 = x_149;
x_34 = x_160;
x_35 = x_151;
x_36 = x_150;
x_37 = x_154;
x_38 = x_214;
x_39 = x_205;
x_40 = x_228;
x_41 = x_233;
goto block_124;
}
}
block_281:
{
lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; 
lean_inc_ref(x_240);
x_261 = l_Array_append___redArg(x_240, x_260);
lean_dec_ref(x_260);
lean_inc(x_256);
lean_inc(x_244);
x_262 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_262, 0, x_244);
lean_ctor_set(x_262, 1, x_256);
lean_ctor_set(x_262, 2, x_261);
x_263 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__57;
lean_inc_ref(x_238);
lean_inc_ref(x_251);
lean_inc_ref(x_250);
x_264 = l_Lean_Name_mkStr4(x_250, x_251, x_238, x_263);
x_265 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__39;
lean_inc(x_244);
x_266 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_266, 0, x_244);
lean_ctor_set(x_266, 1, x_265);
x_267 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__12;
x_268 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__13;
lean_inc(x_249);
lean_inc(x_236);
x_269 = l_Lean_addMacroScope(x_236, x_268, x_249);
x_270 = lean_box(0);
x_271 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__16;
lean_inc(x_258);
x_272 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_272, 0, x_271);
lean_ctor_set(x_272, 1, x_258);
lean_inc(x_244);
x_273 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_273, 0, x_244);
lean_ctor_set(x_273, 1, x_267);
lean_ctor_set(x_273, 2, x_269);
lean_ctor_set(x_273, 3, x_272);
lean_inc_ref(x_266);
lean_inc(x_264);
lean_inc(x_244);
x_274 = l_Lean_Syntax_node2(x_244, x_264, x_266, x_273);
x_275 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__14;
lean_inc(x_244);
x_276 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_276, 0, x_244);
lean_ctor_set(x_276, 1, x_275);
lean_inc_n(x_243, 2);
lean_inc(x_244);
x_277 = l_Lean_Syntax_node2(x_244, x_235, x_243, x_243);
if (lean_obj_tag(x_259) == 1)
{
lean_object* x_278; lean_object* x_279; 
x_278 = lean_ctor_get(x_259, 0);
lean_inc(x_278);
lean_dec_ref(x_259);
x_279 = l_Array_mkArray1___redArg(x_278);
x_125 = x_236;
x_126 = x_262;
x_127 = x_237;
x_128 = x_238;
x_129 = x_239;
x_130 = x_277;
x_131 = x_240;
x_132 = x_241;
x_133 = x_276;
x_134 = x_264;
x_135 = x_266;
x_136 = x_242;
x_137 = x_243;
x_138 = x_244;
x_139 = x_245;
x_140 = x_246;
x_141 = x_247;
x_142 = x_248;
x_143 = x_249;
x_144 = x_250;
x_145 = x_251;
x_146 = x_252;
x_147 = x_253;
x_148 = x_254;
x_149 = x_255;
x_150 = x_256;
x_151 = x_270;
x_152 = x_257;
x_153 = x_274;
x_154 = x_258;
x_155 = x_279;
goto block_234;
}
else
{
lean_object* x_280; 
lean_dec(x_259);
x_280 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__35;
x_125 = x_236;
x_126 = x_262;
x_127 = x_237;
x_128 = x_238;
x_129 = x_239;
x_130 = x_277;
x_131 = x_240;
x_132 = x_241;
x_133 = x_276;
x_134 = x_264;
x_135 = x_266;
x_136 = x_242;
x_137 = x_243;
x_138 = x_244;
x_139 = x_245;
x_140 = x_246;
x_141 = x_247;
x_142 = x_248;
x_143 = x_249;
x_144 = x_250;
x_145 = x_251;
x_146 = x_252;
x_147 = x_253;
x_148 = x_254;
x_149 = x_255;
x_150 = x_256;
x_151 = x_270;
x_152 = x_257;
x_153 = x_274;
x_154 = x_258;
x_155 = x_280;
goto block_234;
}
}
block_320:
{
uint8_t x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; 
x_306 = 0;
x_307 = l_Lean_mkIdentFrom(x_294, x_305, x_306);
lean_inc(x_294);
x_308 = l_Lake_Name_quoteFrom(x_294, x_296, x_306);
x_309 = l_Lake_ExternLib_keyword;
x_310 = l_Lake_Name_quoteFrom(x_282, x_309, x_306);
x_311 = l_Lean_SourceInfo_fromRef(x_304, x_306);
lean_dec(x_304);
x_312 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__16;
lean_inc_ref(x_297);
lean_inc(x_295);
lean_inc(x_311);
x_313 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_313, 0, x_311);
lean_ctor_set(x_313, 1, x_295);
lean_ctor_set(x_313, 2, x_297);
lean_inc(x_311);
x_314 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_314, 0, x_311);
lean_ctor_set(x_314, 1, x_288);
x_315 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__68;
lean_inc(x_311);
x_316 = l_Lean_Syntax_node1(x_311, x_289, x_307);
if (lean_obj_tag(x_300) == 1)
{
lean_object* x_317; lean_object* x_318; 
x_317 = lean_ctor_get(x_300, 0);
lean_inc(x_317);
lean_dec_ref(x_300);
x_318 = l_Array_mkArray1___redArg(x_317);
x_235 = x_283;
x_236 = x_285;
x_237 = x_291;
x_238 = x_293;
x_239 = x_308;
x_240 = x_297;
x_241 = x_314;
x_242 = x_310;
x_243 = x_313;
x_244 = x_311;
x_245 = x_312;
x_246 = x_301;
x_247 = x_302;
x_248 = x_284;
x_249 = x_287;
x_250 = x_286;
x_251 = x_290;
x_252 = x_292;
x_253 = x_316;
x_254 = x_315;
x_255 = x_294;
x_256 = x_295;
x_257 = x_298;
x_258 = x_299;
x_259 = x_303;
x_260 = x_318;
goto block_281;
}
else
{
lean_object* x_319; 
lean_dec(x_300);
x_319 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__35;
x_235 = x_283;
x_236 = x_285;
x_237 = x_291;
x_238 = x_293;
x_239 = x_308;
x_240 = x_297;
x_241 = x_314;
x_242 = x_310;
x_243 = x_313;
x_244 = x_311;
x_245 = x_312;
x_246 = x_301;
x_247 = x_302;
x_248 = x_284;
x_249 = x_287;
x_250 = x_286;
x_251 = x_290;
x_252 = x_292;
x_253 = x_316;
x_254 = x_315;
x_255 = x_294;
x_256 = x_295;
x_257 = x_298;
x_258 = x_299;
x_259 = x_303;
x_260 = x_319;
goto block_281;
}
}
block_456:
{
uint8_t x_334; 
x_334 = !lean_is_exclusive(x_332);
if (x_334 == 0)
{
lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; uint8_t x_381; 
x_335 = lean_ctor_get(x_332, 1);
x_336 = lean_ctor_get(x_332, 2);
x_337 = lean_ctor_get(x_332, 5);
x_338 = l_Lean_replaceRef(x_282, x_337);
lean_dec(x_337);
lean_inc(x_338);
lean_inc(x_336);
lean_inc(x_335);
lean_ctor_set(x_332, 5, x_338);
x_339 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__0(x_338, x_332, x_333);
x_340 = lean_ctor_get(x_339, 0);
lean_inc(x_340);
x_341 = lean_ctor_get(x_339, 1);
lean_inc(x_341);
lean_dec_ref(x_339);
x_342 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__0(x_338, x_332, x_341);
lean_dec_ref(x_332);
x_343 = lean_ctor_get(x_342, 0);
lean_inc(x_343);
x_344 = lean_ctor_get(x_342, 1);
lean_inc(x_344);
lean_dec_ref(x_342);
x_345 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__41;
x_346 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56;
x_347 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__42;
lean_inc_ref(x_327);
lean_inc_ref(x_325);
x_348 = l_Lean_Name_mkStr4(x_325, x_327, x_346, x_347);
x_349 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__43;
lean_inc_ref(x_327);
lean_inc_ref(x_325);
x_350 = l_Lean_Name_mkStr4(x_325, x_327, x_346, x_349);
x_351 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__45;
x_352 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__46;
lean_inc(x_340);
x_353 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_353, 0, x_340);
lean_ctor_set(x_353, 1, x_351);
lean_ctor_set(x_353, 2, x_352);
lean_inc_ref(x_353);
lean_inc(x_350);
lean_inc(x_340);
x_354 = l_Lean_Syntax_node1(x_340, x_350, x_353);
x_355 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__47;
x_356 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__48;
lean_inc_ref(x_327);
lean_inc_ref(x_325);
x_357 = l_Lean_Name_mkStr4(x_325, x_327, x_355, x_356);
x_358 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__23;
x_359 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__24;
x_360 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__25;
lean_inc(x_336);
lean_inc(x_335);
x_361 = l_Lean_addMacroScope(x_335, x_360, x_336);
x_362 = lean_box(0);
lean_inc(x_340);
x_363 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_363, 0, x_340);
lean_ctor_set(x_363, 1, x_358);
lean_ctor_set(x_363, 2, x_361);
lean_ctor_set(x_363, 3, x_362);
lean_inc(x_357);
lean_inc(x_340);
x_364 = l_Lean_Syntax_node2(x_340, x_357, x_363, x_353);
lean_inc(x_348);
x_365 = l_Lean_Syntax_node2(x_340, x_348, x_354, x_364);
lean_inc(x_343);
x_366 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_366, 0, x_343);
lean_ctor_set(x_366, 1, x_351);
lean_ctor_set(x_366, 2, x_352);
lean_inc_ref(x_366);
lean_inc(x_343);
x_367 = l_Lean_Syntax_node1(x_343, x_350, x_366);
x_368 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__18;
x_369 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__20;
lean_inc(x_336);
lean_inc(x_335);
x_370 = l_Lean_addMacroScope(x_335, x_369, x_336);
lean_inc(x_343);
x_371 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_371, 0, x_343);
lean_ctor_set(x_371, 1, x_368);
lean_ctor_set(x_371, 2, x_370);
lean_ctor_set(x_371, 3, x_362);
lean_inc(x_343);
x_372 = l_Lean_Syntax_node2(x_343, x_357, x_371, x_366);
x_373 = l_Lean_Syntax_node2(x_343, x_348, x_367, x_372);
x_374 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__12;
x_375 = lean_array_push(x_374, x_365);
x_376 = lean_array_push(x_375, x_373);
x_377 = l_Lake_DSL_expandAttrs(x_322);
x_378 = l_Array_append___redArg(x_376, x_377);
lean_dec_ref(x_377);
x_379 = l_Lake_DSL_expandIdentOrStrAsIdent(x_323);
x_380 = l_Lean_TSyntax_getId(x_379);
x_381 = l_Lean_Name_hasMacroScopes(x_380);
if (x_381 == 0)
{
lean_object* x_382; 
lean_inc(x_380);
x_382 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__1(x_380);
x_283 = x_321;
x_284 = x_344;
x_285 = x_335;
x_286 = x_325;
x_287 = x_336;
x_288 = x_359;
x_289 = x_345;
x_290 = x_327;
x_291 = x_326;
x_292 = x_378;
x_293 = x_346;
x_294 = x_379;
x_295 = x_351;
x_296 = x_380;
x_297 = x_352;
x_298 = x_324;
x_299 = x_362;
x_300 = x_328;
x_301 = x_330;
x_302 = x_329;
x_303 = x_331;
x_304 = x_338;
x_305 = x_382;
goto block_320;
}
else
{
lean_object* x_383; uint8_t x_384; 
lean_inc(x_380);
x_383 = l_Lean_extractMacroScopes(x_380);
x_384 = !lean_is_exclusive(x_383);
if (x_384 == 0)
{
lean_object* x_385; lean_object* x_386; lean_object* x_387; 
x_385 = lean_ctor_get(x_383, 0);
x_386 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__1(x_385);
lean_ctor_set(x_383, 0, x_386);
x_387 = l_Lean_MacroScopesView_review(x_383);
x_283 = x_321;
x_284 = x_344;
x_285 = x_335;
x_286 = x_325;
x_287 = x_336;
x_288 = x_359;
x_289 = x_345;
x_290 = x_327;
x_291 = x_326;
x_292 = x_378;
x_293 = x_346;
x_294 = x_379;
x_295 = x_351;
x_296 = x_380;
x_297 = x_352;
x_298 = x_324;
x_299 = x_362;
x_300 = x_328;
x_301 = x_330;
x_302 = x_329;
x_303 = x_331;
x_304 = x_338;
x_305 = x_387;
goto block_320;
}
else
{
lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; 
x_388 = lean_ctor_get(x_383, 0);
x_389 = lean_ctor_get(x_383, 1);
x_390 = lean_ctor_get(x_383, 2);
x_391 = lean_ctor_get(x_383, 3);
lean_inc(x_391);
lean_inc(x_390);
lean_inc(x_389);
lean_inc(x_388);
lean_dec(x_383);
x_392 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__1(x_388);
x_393 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_393, 0, x_392);
lean_ctor_set(x_393, 1, x_389);
lean_ctor_set(x_393, 2, x_390);
lean_ctor_set(x_393, 3, x_391);
x_394 = l_Lean_MacroScopesView_review(x_393);
x_283 = x_321;
x_284 = x_344;
x_285 = x_335;
x_286 = x_325;
x_287 = x_336;
x_288 = x_359;
x_289 = x_345;
x_290 = x_327;
x_291 = x_326;
x_292 = x_378;
x_293 = x_346;
x_294 = x_379;
x_295 = x_351;
x_296 = x_380;
x_297 = x_352;
x_298 = x_324;
x_299 = x_362;
x_300 = x_328;
x_301 = x_330;
x_302 = x_329;
x_303 = x_331;
x_304 = x_338;
x_305 = x_394;
goto block_320;
}
}
}
else
{
lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; uint8_t x_445; 
x_395 = lean_ctor_get(x_332, 0);
x_396 = lean_ctor_get(x_332, 1);
x_397 = lean_ctor_get(x_332, 2);
x_398 = lean_ctor_get(x_332, 3);
x_399 = lean_ctor_get(x_332, 4);
x_400 = lean_ctor_get(x_332, 5);
lean_inc(x_400);
lean_inc(x_399);
lean_inc(x_398);
lean_inc(x_397);
lean_inc(x_396);
lean_inc(x_395);
lean_dec(x_332);
x_401 = l_Lean_replaceRef(x_282, x_400);
lean_dec(x_400);
lean_inc(x_401);
lean_inc(x_397);
lean_inc(x_396);
x_402 = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(x_402, 0, x_395);
lean_ctor_set(x_402, 1, x_396);
lean_ctor_set(x_402, 2, x_397);
lean_ctor_set(x_402, 3, x_398);
lean_ctor_set(x_402, 4, x_399);
lean_ctor_set(x_402, 5, x_401);
x_403 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__0(x_401, x_402, x_333);
x_404 = lean_ctor_get(x_403, 0);
lean_inc(x_404);
x_405 = lean_ctor_get(x_403, 1);
lean_inc(x_405);
lean_dec_ref(x_403);
x_406 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__0(x_401, x_402, x_405);
lean_dec_ref(x_402);
x_407 = lean_ctor_get(x_406, 0);
lean_inc(x_407);
x_408 = lean_ctor_get(x_406, 1);
lean_inc(x_408);
lean_dec_ref(x_406);
x_409 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__41;
x_410 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56;
x_411 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__42;
lean_inc_ref(x_327);
lean_inc_ref(x_325);
x_412 = l_Lean_Name_mkStr4(x_325, x_327, x_410, x_411);
x_413 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__43;
lean_inc_ref(x_327);
lean_inc_ref(x_325);
x_414 = l_Lean_Name_mkStr4(x_325, x_327, x_410, x_413);
x_415 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__45;
x_416 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__46;
lean_inc(x_404);
x_417 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_417, 0, x_404);
lean_ctor_set(x_417, 1, x_415);
lean_ctor_set(x_417, 2, x_416);
lean_inc_ref(x_417);
lean_inc(x_414);
lean_inc(x_404);
x_418 = l_Lean_Syntax_node1(x_404, x_414, x_417);
x_419 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__47;
x_420 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__48;
lean_inc_ref(x_327);
lean_inc_ref(x_325);
x_421 = l_Lean_Name_mkStr4(x_325, x_327, x_419, x_420);
x_422 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__23;
x_423 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__24;
x_424 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__25;
lean_inc(x_397);
lean_inc(x_396);
x_425 = l_Lean_addMacroScope(x_396, x_424, x_397);
x_426 = lean_box(0);
lean_inc(x_404);
x_427 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_427, 0, x_404);
lean_ctor_set(x_427, 1, x_422);
lean_ctor_set(x_427, 2, x_425);
lean_ctor_set(x_427, 3, x_426);
lean_inc(x_421);
lean_inc(x_404);
x_428 = l_Lean_Syntax_node2(x_404, x_421, x_427, x_417);
lean_inc(x_412);
x_429 = l_Lean_Syntax_node2(x_404, x_412, x_418, x_428);
lean_inc(x_407);
x_430 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_430, 0, x_407);
lean_ctor_set(x_430, 1, x_415);
lean_ctor_set(x_430, 2, x_416);
lean_inc_ref(x_430);
lean_inc(x_407);
x_431 = l_Lean_Syntax_node1(x_407, x_414, x_430);
x_432 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__18;
x_433 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__20;
lean_inc(x_397);
lean_inc(x_396);
x_434 = l_Lean_addMacroScope(x_396, x_433, x_397);
lean_inc(x_407);
x_435 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_435, 0, x_407);
lean_ctor_set(x_435, 1, x_432);
lean_ctor_set(x_435, 2, x_434);
lean_ctor_set(x_435, 3, x_426);
lean_inc(x_407);
x_436 = l_Lean_Syntax_node2(x_407, x_421, x_435, x_430);
x_437 = l_Lean_Syntax_node2(x_407, x_412, x_431, x_436);
x_438 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__12;
x_439 = lean_array_push(x_438, x_429);
x_440 = lean_array_push(x_439, x_437);
x_441 = l_Lake_DSL_expandAttrs(x_322);
x_442 = l_Array_append___redArg(x_440, x_441);
lean_dec_ref(x_441);
x_443 = l_Lake_DSL_expandIdentOrStrAsIdent(x_323);
x_444 = l_Lean_TSyntax_getId(x_443);
x_445 = l_Lean_Name_hasMacroScopes(x_444);
if (x_445 == 0)
{
lean_object* x_446; 
lean_inc(x_444);
x_446 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__1(x_444);
x_283 = x_321;
x_284 = x_408;
x_285 = x_396;
x_286 = x_325;
x_287 = x_397;
x_288 = x_423;
x_289 = x_409;
x_290 = x_327;
x_291 = x_326;
x_292 = x_442;
x_293 = x_410;
x_294 = x_443;
x_295 = x_415;
x_296 = x_444;
x_297 = x_416;
x_298 = x_324;
x_299 = x_426;
x_300 = x_328;
x_301 = x_330;
x_302 = x_329;
x_303 = x_331;
x_304 = x_401;
x_305 = x_446;
goto block_320;
}
else
{
lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; 
lean_inc(x_444);
x_447 = l_Lean_extractMacroScopes(x_444);
x_448 = lean_ctor_get(x_447, 0);
lean_inc(x_448);
x_449 = lean_ctor_get(x_447, 1);
lean_inc(x_449);
x_450 = lean_ctor_get(x_447, 2);
lean_inc(x_450);
x_451 = lean_ctor_get(x_447, 3);
lean_inc(x_451);
if (lean_is_exclusive(x_447)) {
 lean_ctor_release(x_447, 0);
 lean_ctor_release(x_447, 1);
 lean_ctor_release(x_447, 2);
 lean_ctor_release(x_447, 3);
 x_452 = x_447;
} else {
 lean_dec_ref(x_447);
 x_452 = lean_box(0);
}
x_453 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__1(x_448);
if (lean_is_scalar(x_452)) {
 x_454 = lean_alloc_ctor(0, 4, 0);
} else {
 x_454 = x_452;
}
lean_ctor_set(x_454, 0, x_453);
lean_ctor_set(x_454, 1, x_449);
lean_ctor_set(x_454, 2, x_450);
lean_ctor_set(x_454, 3, x_451);
x_455 = l_Lean_MacroScopesView_review(x_454);
x_283 = x_321;
x_284 = x_408;
x_285 = x_396;
x_286 = x_325;
x_287 = x_397;
x_288 = x_423;
x_289 = x_409;
x_290 = x_327;
x_291 = x_326;
x_292 = x_442;
x_293 = x_410;
x_294 = x_443;
x_295 = x_415;
x_296 = x_444;
x_297 = x_416;
x_298 = x_324;
x_299 = x_426;
x_300 = x_328;
x_301 = x_330;
x_302 = x_329;
x_303 = x_331;
x_304 = x_401;
x_305 = x_455;
goto block_320;
}
}
}
block_499:
{
lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; uint8_t x_470; 
x_465 = l_Lean_Syntax_getArg(x_458, x_12);
x_466 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54;
x_467 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55;
x_468 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__59;
x_469 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__61;
lean_inc(x_465);
x_470 = l_Lean_Syntax_isOfKind(x_465, x_469);
if (x_470 == 0)
{
lean_object* x_471; lean_object* x_472; 
lean_dec(x_465);
lean_dec(x_462);
lean_dec(x_461);
lean_dec(x_460);
lean_dec(x_459);
lean_dec(x_282);
x_471 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__21;
x_472 = l_Lean_Macro_throwErrorAt___redArg(x_458, x_471, x_463, x_464);
lean_dec(x_458);
return x_472;
}
else
{
lean_object* x_473; lean_object* x_474; uint8_t x_475; 
x_473 = l_Lean_Syntax_getArg(x_465, x_12);
x_474 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__64;
lean_inc(x_473);
x_475 = l_Lean_Syntax_isOfKind(x_473, x_474);
if (x_475 == 0)
{
lean_object* x_476; lean_object* x_477; 
lean_dec(x_473);
lean_dec(x_465);
lean_dec(x_462);
lean_dec(x_461);
lean_dec(x_460);
lean_dec(x_459);
lean_dec(x_282);
x_476 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__21;
x_477 = l_Lean_Macro_throwErrorAt___redArg(x_458, x_476, x_463, x_464);
lean_dec(x_458);
return x_477;
}
else
{
lean_object* x_478; uint8_t x_479; 
x_478 = l_Lean_Syntax_getArg(x_473, x_8);
x_479 = l_Lean_Syntax_matchesNull(x_478, x_8);
if (x_479 == 0)
{
lean_object* x_480; lean_object* x_481; 
lean_dec(x_473);
lean_dec(x_465);
lean_dec(x_462);
lean_dec(x_461);
lean_dec(x_460);
lean_dec(x_459);
lean_dec(x_282);
x_480 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__21;
x_481 = l_Lean_Macro_throwErrorAt___redArg(x_458, x_480, x_463, x_464);
lean_dec(x_458);
return x_481;
}
else
{
lean_object* x_482; uint8_t x_483; 
x_482 = l_Lean_Syntax_getArg(x_473, x_10);
lean_dec(x_473);
x_483 = l_Lean_Syntax_matchesNull(x_482, x_8);
if (x_483 == 0)
{
lean_object* x_484; lean_object* x_485; 
lean_dec(x_465);
lean_dec(x_462);
lean_dec(x_461);
lean_dec(x_460);
lean_dec(x_459);
lean_dec(x_282);
x_484 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__21;
x_485 = l_Lean_Macro_throwErrorAt___redArg(x_458, x_484, x_463, x_464);
lean_dec(x_458);
return x_485;
}
else
{
lean_object* x_486; lean_object* x_487; uint8_t x_488; 
x_486 = l_Lean_Syntax_getArg(x_465, x_10);
x_487 = l_Lean_Syntax_getArg(x_465, x_457);
lean_dec(x_465);
x_488 = l_Lean_Syntax_isNone(x_487);
if (x_488 == 0)
{
uint8_t x_489; 
lean_inc(x_487);
x_489 = l_Lean_Syntax_matchesNull(x_487, x_10);
if (x_489 == 0)
{
lean_object* x_490; lean_object* x_491; 
lean_dec(x_487);
lean_dec(x_486);
lean_dec(x_462);
lean_dec(x_461);
lean_dec(x_460);
lean_dec(x_459);
lean_dec(x_282);
x_490 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__21;
x_491 = l_Lean_Macro_throwErrorAt___redArg(x_458, x_490, x_463, x_464);
lean_dec(x_458);
return x_491;
}
else
{
lean_object* x_492; lean_object* x_493; uint8_t x_494; 
x_492 = l_Lean_Syntax_getArg(x_487, x_8);
lean_dec(x_487);
x_493 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__66;
lean_inc(x_492);
x_494 = l_Lean_Syntax_isOfKind(x_492, x_493);
if (x_494 == 0)
{
lean_object* x_495; lean_object* x_496; 
lean_dec(x_492);
lean_dec(x_486);
lean_dec(x_462);
lean_dec(x_461);
lean_dec(x_460);
lean_dec(x_459);
lean_dec(x_282);
x_495 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__21;
x_496 = l_Lean_Macro_throwErrorAt___redArg(x_458, x_495, x_463, x_464);
lean_dec(x_458);
return x_496;
}
else
{
lean_object* x_497; 
lean_dec(x_458);
x_497 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_497, 0, x_492);
x_321 = x_474;
x_322 = x_459;
x_323 = x_460;
x_324 = x_461;
x_325 = x_466;
x_326 = x_486;
x_327 = x_467;
x_328 = x_462;
x_329 = x_468;
x_330 = x_469;
x_331 = x_497;
x_332 = x_463;
x_333 = x_464;
goto block_456;
}
}
}
else
{
lean_object* x_498; 
lean_dec(x_487);
lean_dec(x_458);
x_498 = lean_box(0);
x_321 = x_474;
x_322 = x_459;
x_323 = x_460;
x_324 = x_461;
x_325 = x_466;
x_326 = x_486;
x_327 = x_467;
x_328 = x_462;
x_329 = x_468;
x_330 = x_469;
x_331 = x_498;
x_332 = x_463;
x_333 = x_464;
goto block_456;
}
}
}
}
}
}
block_515:
{
uint8_t x_503; 
lean_inc(x_458);
x_503 = l_Lean_Syntax_isOfKind(x_458, x_500);
if (x_503 == 0)
{
lean_object* x_504; lean_object* x_505; 
lean_dec(x_502);
lean_dec(x_501);
lean_dec(x_282);
x_504 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__21;
x_505 = l_Lean_Macro_throwErrorAt___redArg(x_458, x_504, x_2, x_3);
lean_dec(x_458);
return x_505;
}
else
{
lean_object* x_506; lean_object* x_507; uint8_t x_508; 
x_506 = l_Lean_Syntax_getArg(x_458, x_8);
x_507 = l_Lean_Syntax_getArg(x_458, x_10);
x_508 = l_Lean_Syntax_isNone(x_507);
if (x_508 == 0)
{
uint8_t x_509; 
lean_inc(x_507);
x_509 = l_Lean_Syntax_matchesNull(x_507, x_10);
if (x_509 == 0)
{
lean_object* x_510; lean_object* x_511; 
lean_dec(x_507);
lean_dec(x_506);
lean_dec(x_502);
lean_dec(x_501);
lean_dec(x_282);
x_510 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__21;
x_511 = l_Lean_Macro_throwErrorAt___redArg(x_458, x_510, x_2, x_3);
lean_dec(x_458);
return x_511;
}
else
{
lean_object* x_512; lean_object* x_513; 
x_512 = l_Lean_Syntax_getArg(x_507, x_8);
lean_dec(x_507);
x_513 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_513, 0, x_512);
x_459 = x_501;
x_460 = x_506;
x_461 = x_502;
x_462 = x_513;
x_463 = x_2;
x_464 = x_3;
goto block_499;
}
}
else
{
lean_object* x_514; 
lean_dec(x_507);
x_514 = lean_box(0);
x_459 = x_501;
x_460 = x_506;
x_461 = x_502;
x_462 = x_514;
x_463 = x_2;
x_464 = x_3;
goto block_499;
}
}
}
block_522:
{
lean_object* x_517; 
x_517 = l_Lean_Syntax_getOptional_x3f(x_9);
lean_dec(x_9);
if (lean_obj_tag(x_517) == 0)
{
lean_object* x_518; 
x_518 = lean_box(0);
x_501 = x_516;
x_502 = x_518;
goto block_515;
}
else
{
uint8_t x_519; 
x_519 = !lean_is_exclusive(x_517);
if (x_519 == 0)
{
x_501 = x_516;
x_502 = x_517;
goto block_515;
}
else
{
lean_object* x_520; lean_object* x_521; 
x_520 = lean_ctor_get(x_517, 0);
lean_inc(x_520);
lean_dec(x_517);
x_521 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_521, 0, x_520);
x_501 = x_516;
x_502 = x_521;
goto block_515;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__0(x_1, x_2, x_3);
lean_dec_ref(x_2);
lean_dec(x_1);
return x_4;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand__1___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("expandExternLibCommand", 22, 22);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand__1___closed__0;
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__9;
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand__1() {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__0;
x_3 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__1;
x_4 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand__1___closed__1;
x_5 = lean_alloc_closure((void*)(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand), 3, 0);
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___redArg(x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand__1___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand__1();
return x_2;
}
}
lean_object* initialize_Lake_DSL_Syntax(uint8_t builtin);
lean_object* initialize_Lake_Config_TargetConfig(uint8_t builtin);
lean_object* initialize_Lake_Config_FacetConfig(uint8_t builtin);
lean_object* initialize_Lake_Build_Job_Register(uint8_t builtin);
lean_object* initialize_Lake_Build_Infos(uint8_t builtin);
lean_object* initialize_Lake_DSL_DeclUtil(uint8_t builtin);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lake_DSL_Targets(uint8_t builtin) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Lake_DSL_Syntax(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lake_Config_TargetConfig(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lake_Config_FacetConfig(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lake_Build_Job_Register(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lake_Build_Infos(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lake_DSL_DeclUtil(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___lam__0___closed__0 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___lam__0___closed__0();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___lam__0___closed__0);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__0);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__1);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__2 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__2();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__2);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__3 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__3();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__3);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__4 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__4();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__4);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__5 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__5();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__5);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__6 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__6();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__6);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__7 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__7();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__7);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__8 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__8();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__8);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__9 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__9();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__9);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__10 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__10();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__10);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__11 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__11();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__11);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__12 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__12();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__12);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__13 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__13();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__13);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__14 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__14();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__14);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__15 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__15();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__15);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__16 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__16();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__16);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__17 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__17();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__17);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__18 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__18();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__18);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__19 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__19();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__19);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__20 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__20();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__20);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__21 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__21();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__21);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__22 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__22();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__22);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__23 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__23();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__23);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__24 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__24();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__24);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__25 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__25();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__25);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__26 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__26();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__26);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__27 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__27();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__27);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__28 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__28();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__28);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__29 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__29();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__29);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__30 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__30();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__30);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__31 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__31();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__31);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__32 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__32();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__32);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__33 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__33();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__33);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__34 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__34();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__34);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__35 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__35();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__35);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__36 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__36();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__36);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__37 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__37();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__37);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__38 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__38();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__38);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__39 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__39();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__39);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__40 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__40();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__40);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__41 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__41();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__41);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__42 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__42();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__42);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__43 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__43();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__43);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__44 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__44();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__44);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__45 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__45();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__45);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__46 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__46();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__46);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__47 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__47();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__47);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__48 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__48();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__48);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__49 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__49();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__49);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__50 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__50();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__50);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__51 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__51();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__51);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__52 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__52();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__52);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__53 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__53();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__53);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__54);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__55);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__56);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__57 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__57();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__57);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__58 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__58();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__58);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__59 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__59();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__59);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__60 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__60();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__60);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__61 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__61();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__61);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__62 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__62();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__62);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__63 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__63();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__63);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__64 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__64();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__64);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__65 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__65();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__65);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__66 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__66();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__66);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__67 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__67();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__67);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__68 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__68();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___closed__68);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__0 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__0();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__0);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__1 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__1();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__1);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__2 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__2();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__2);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__3 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__3();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__3);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__4 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__4();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__4);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__5 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__5();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__5);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__6 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__6();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__6);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__7 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__7();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__7);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__8 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__8();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__8);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__9 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__9();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__9);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__10 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__10();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__10);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__11 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__11();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1___closed__11);
if (builtin) {res = l___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandModuleFacetDecl__1();
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___lam__0___closed__0 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___lam__0___closed__0();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___lam__0___closed__0);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__0 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__0();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__0);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__1 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__1();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__1);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__2 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__2();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__2);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__3 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__3();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__3);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__4 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__4();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__4);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__5 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__5();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__5);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__6 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__6();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__6);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__7 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__7();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__7);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__8 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__8();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__8);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__9 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__9();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__9);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__10 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__10();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__10);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__11 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__11();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__11);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__12 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__12();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__12);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__13 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__13();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__13);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__14 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__14();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__14);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__15 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__15();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___closed__15);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl__1___closed__0 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl__1___closed__0();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl__1___closed__0);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl__1___closed__1 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl__1___closed__1();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl__1___closed__1);
if (builtin) {res = l___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandPackageFacetDecl__1();
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lake_DSL_mkLibraryFacetDecl___lam__0___closed__0 = _init_l_Lake_DSL_mkLibraryFacetDecl___lam__0___closed__0();
lean_mark_persistent(l_Lake_DSL_mkLibraryFacetDecl___lam__0___closed__0);
l_Lake_DSL_mkLibraryFacetDecl___lam__0___closed__1 = _init_l_Lake_DSL_mkLibraryFacetDecl___lam__0___closed__1();
lean_mark_persistent(l_Lake_DSL_mkLibraryFacetDecl___lam__0___closed__1);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___lam__0___closed__0 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___lam__0___closed__0();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___lam__0___closed__0);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__0 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__0();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__0);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__1 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__1();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__1);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__2 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__2();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__2);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__3 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__3();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__3);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__4 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__4();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__4);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__5 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__5();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__5);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__6 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__6();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__6);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__7 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__7();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__7);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__8 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__8();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__8);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__9 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__9();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__9);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__10 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__10();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__10);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__11 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__11();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__11);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__12 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__12();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__12);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__13 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__13();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__13);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__14 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__14();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__14);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__15 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__15();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__15);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__16 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__16();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__16);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__17 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__17();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__17);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__18 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__18();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__18);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__19 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__19();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__19);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__20 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__20();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___closed__20);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl__1___closed__0 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl__1___closed__0();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl__1___closed__0);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl__1___closed__1 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl__1___closed__1();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl__1___closed__1);
if (builtin) {res = l___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandLibraryFacetDecl__1();
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__0 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__0();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__0);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__1 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__1();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__1);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__2 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__2();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__2);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__3 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__3();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__3);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__4 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__4();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__4);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__5 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__5();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__5);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__6 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__6();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__6);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__7 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__7();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__7);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__8 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__8();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__8);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__9 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__9();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__9);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__10 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__10();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__10);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__11 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__11();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__11);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__12 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__12();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__12);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__13 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__13();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__13);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__14 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__14();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__14);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__15 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__15();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__15);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__16 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__16();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__16);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__17 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__17();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__17);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__18 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__18();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__18);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__19 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__19();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__19);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__20 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__20();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__20);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__21 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__21();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__21);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__22 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__22();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__22);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__23 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__23();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__23);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__24 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__24();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__24);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__25 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__25();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__25);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__26 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__26();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__26);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__27 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__27();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__27);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__28 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__28();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__28);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__29 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__29();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__29);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__30 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__30();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__30);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__31 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__31();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__31);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__32 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__32();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__32);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__33 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__33();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__33);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__34 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__34();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__34);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__35 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__35();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__35);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__36 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__36();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__36);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__37 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__37();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__37);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__38 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__38();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__38);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__39 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__39();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__39);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__40 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__40();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__40);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__41 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__41();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__41);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__42 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__42();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__42);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__43 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__43();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___closed__43);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand__1___closed__0 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand__1___closed__0();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand__1___closed__0);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand__1___closed__1 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand__1___closed__1();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand__1___closed__1);
if (builtin) {res = l___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandTargetCommand__1();
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__0 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__0();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__0);
l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__1 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__1();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__1);
l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__2 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__2();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__2);
l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__3 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__3();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__3);
l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__4 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__4();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__4);
l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__5 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__5();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__5);
l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__6 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__6();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__6);
l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__7 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__7();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__7);
l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__8 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__8();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__8);
l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__9 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__9();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__9);
l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__10 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__10();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__10);
l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__11 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__11();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__11);
l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__12 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__12();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__12);
l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__13 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__13();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__13);
l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__14 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__14();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__14);
l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__15 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__15();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__15);
l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__16 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__16();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__16);
l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__17 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__17();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__17);
l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__18 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__18();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__18);
l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__19 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__19();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___closed__19);
l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__0 = _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__0();
lean_mark_persistent(l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__0);
l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__1 = _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__1();
lean_mark_persistent(l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__1);
l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__2 = _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__2();
lean_mark_persistent(l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__2);
l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__3 = _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__3();
lean_mark_persistent(l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__3);
l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__4 = _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__4();
lean_mark_persistent(l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__4);
l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__5 = _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__5();
lean_mark_persistent(l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1___redArg___closed__5);
l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__2___closed__0 = _init_l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__2___closed__0();
lean_mark_persistent(l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__2___closed__0);
l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__2___closed__1 = _init_l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__2___closed__1();
lean_mark_persistent(l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__2___closed__1);
l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__2___closed__2 = _init_l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__2___closed__2();
lean_mark_persistent(l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__1_spec__2___closed__2);
l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__0 = _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__0();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__0);
l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__1 = _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__1();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__1);
l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__2 = _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__2();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__2);
l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__3 = _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__3();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__3);
l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__4 = _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__4();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__4);
l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__5 = _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__5();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__5);
l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__6 = _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__6();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__0_spec__0_spec__0___redArg___closed__6);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__0 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__0();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__0);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__1 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__1();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__1);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__2 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__2();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__2);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__3 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__3();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__3);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__4 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__4();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__4);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__5 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__5();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___closed__5);
l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__0 = _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__0();
lean_mark_persistent(l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__0);
l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__1 = _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__1();
lean_mark_persistent(l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__1);
l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__2 = _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__2();
lean_mark_persistent(l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__2);
l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__3 = _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__3();
lean_mark_persistent(l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__3);
l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__4 = _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__4();
lean_mark_persistent(l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__4);
l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__5 = _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__5();
lean_mark_persistent(l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__5);
l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__6 = _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__6();
lean_mark_persistent(l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__6);
l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7 = _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7();
lean_mark_persistent(l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__7);
l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__8 = _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__8();
lean_mark_persistent(l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__8);
l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__9 = _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__9();
lean_mark_persistent(l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__9);
l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__10 = _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__10();
lean_mark_persistent(l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__10);
l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__11 = _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__11();
lean_mark_persistent(l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__11);
l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__12 = _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__12();
lean_mark_persistent(l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__12);
l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__13 = _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__13();
lean_mark_persistent(l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__13);
l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__14 = _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__14();
lean_mark_persistent(l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__14);
l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__15 = _init_l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__15();
lean_mark_persistent(l_Lake_DSL_elabConfig___at___00__private_Lake_DSL_Targets_0__Lake_DSL_mkConfigDeclDef___at___00__private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand_spec__6_spec__6___closed__15);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1___closed__0 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1___closed__0();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1___closed__0);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1___closed__1 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1___closed__1();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1___closed__1);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1___closed__2 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1___closed__2();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1___closed__2);
if (builtin) {res = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanLibCommand__1();
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__0 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__0();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__0);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__1 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__1();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__1);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__2 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__2();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__2);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__3 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__3();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__3);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__4 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__4();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__4);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__5 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__5();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___closed__5);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand__1___closed__0 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand__1___closed__0();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand__1___closed__0);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand__1___closed__1 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand__1___closed__1();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand__1___closed__1);
if (builtin) {res = l___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabLeanExeCommand__1();
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__0 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__0();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__0);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__1 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__1();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__1);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__2 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__2();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__2);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__3 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__3();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__3);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__4 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__4();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__4);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__5 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__5();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___closed__5);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand__1___closed__0 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand__1___closed__0();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand__1___closed__0);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand__1___closed__1 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand__1___closed__1();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand__1___closed__1);
if (builtin) {res = l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputfileCommand__1();
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__0 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__0();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__0);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__1 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__1();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__1);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__2 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__2();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__2);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__3 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__3();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__3);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__4 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__4();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__4);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__5 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__5();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___closed__5);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand__1___closed__0 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand__1___closed__0();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand__1___closed__0);
l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand__1___closed__1 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand__1___closed__1();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand__1___closed__1);
if (builtin) {res = l___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_elabInputDirCommand__1();
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__1___closed__0 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__1___closed__0();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__1___closed__0);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__1___closed__1 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__1___closed__1();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___lam__1___closed__1);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__0 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__0();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__0);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__1 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__1();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__1);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__2 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__2();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__2);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__3 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__3();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__3);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__4 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__4();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__4);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__5 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__5();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__5);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__6 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__6();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__6);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__7 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__7();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__7);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__8 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__8();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__8);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__9 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__9();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__9);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__10 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__10();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__10);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__11 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__11();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__11);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__12 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__12();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__12);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__13 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__13();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__13);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__14 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__14();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__14);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__15 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__15();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__15);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__16 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__16();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__16);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__17 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__17();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__17);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__18 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__18();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__18);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__19 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__19();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__19);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__20 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__20();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__20);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__21 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__21();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__21);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__22 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__22();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__22);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__23 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__23();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___closed__23);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand__1___closed__0 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand__1___closed__0();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand__1___closed__0);
l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand__1___closed__1 = _init_l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand__1___closed__1();
lean_mark_persistent(l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand__1___closed__1);
if (builtin) {res = l___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand___regBuiltin___private_Lake_DSL_Targets_0__Lake_DSL_expandExternLibCommand__1();
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
